sanka-baileyss 1.4.8

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 (252) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2520 -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/Cert/Cert.d.ts +497 -0
  7. package/WAProto/Cert/Cert.js +1503 -0
  8. package/WAProto/Cert/Cert.proto +28 -0
  9. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
  10. package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
  11. package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
  12. package/WAProto/CompanionReg/CompanionReg.d.ts +1049 -0
  13. package/WAProto/CompanionReg/CompanionReg.js +3496 -0
  14. package/WAProto/CompanionReg/CompanionReg.proto +88 -0
  15. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
  16. package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
  17. package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
  18. package/WAProto/E2E/E2E.d.ts +27989 -0
  19. package/WAProto/E2E/E2E.js +97013 -0
  20. package/WAProto/E2E/E2E.proto +2256 -0
  21. package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
  22. package/WAProto/Ephemeral/Ephemeral.js +269 -0
  23. package/WAProto/Ephemeral/Ephemeral.proto +6 -0
  24. package/WAProto/HistorySync/HistorySync.d.ts +40300 -0
  25. package/WAProto/HistorySync/HistorySync.js +141555 -0
  26. package/WAProto/HistorySync/HistorySync.proto +207 -0
  27. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
  28. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
  29. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
  30. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
  31. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
  32. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
  33. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +28866 -0
  34. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +100307 -0
  35. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
  36. package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
  37. package/WAProto/MmsRetry/MmsRetry.js +586 -0
  38. package/WAProto/MmsRetry/MmsRetry.proto +17 -0
  39. package/WAProto/Protocol/Protocol.d.ts +218 -0
  40. package/WAProto/Protocol/Protocol.js +701 -0
  41. package/WAProto/Protocol/Protocol.proto +20 -0
  42. package/WAProto/Reporting/Reporting.d.ts +301 -0
  43. package/WAProto/Reporting/Reporting.js +989 -0
  44. package/WAProto/Reporting/Reporting.proto +19 -0
  45. package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
  46. package/WAProto/ServerSync/ServerSync.js +3176 -0
  47. package/WAProto/ServerSync/ServerSync.proto +59 -0
  48. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
  49. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
  50. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
  51. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
  52. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
  53. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
  54. package/WAProto/StatusAttributions/StatusAttributions.d.ts +544 -0
  55. package/WAProto/StatusAttributions/StatusAttributions.js +1769 -0
  56. package/WAProto/StatusAttributions/StatusAttributions.proto +53 -0
  57. package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
  58. package/WAProto/SyncAction/SyncAction.js +22271 -0
  59. package/WAProto/SyncAction/SyncAction.proto +423 -0
  60. package/WAProto/UserPassword/UserPassword.d.ts +298 -0
  61. package/WAProto/UserPassword/UserPassword.js +898 -0
  62. package/WAProto/UserPassword/UserPassword.proto +27 -0
  63. package/WAProto/VnameCert/VnameCert.d.ts +658 -0
  64. package/WAProto/VnameCert/VnameCert.js +2225 -0
  65. package/WAProto/VnameCert/VnameCert.proto +60 -0
  66. package/WAProto/Wa6/Wa6.d.ts +1613 -0
  67. package/WAProto/Wa6/Wa6.js +6299 -0
  68. package/WAProto/Wa6/Wa6.proto +229 -0
  69. package/WAProto/Web/Web.d.ts +31290 -0
  70. package/WAProto/Web/Web.js +111977 -0
  71. package/WAProto/Web/Web.proto +545 -0
  72. package/WAProto/index.d.ts +49 -0
  73. package/WAProto/index.js +28 -0
  74. package/WASignalGroup/GroupProtocol.js +1771 -0
  75. package/WASignalGroup/ciphertext_message.js +10 -0
  76. package/WASignalGroup/group_cipher.js +103 -0
  77. package/WASignalGroup/group_session_builder.js +39 -0
  78. package/WASignalGroup/index.js +5 -0
  79. package/WASignalGroup/keyhelper.js +17 -0
  80. package/WASignalGroup/protobufs.js +2 -0
  81. package/WASignalGroup/queue_job.js +64 -0
  82. package/WASignalGroup/sender_chain_key.js +38 -0
  83. package/WASignalGroup/sender_key_distribution_message.js +68 -0
  84. package/WASignalGroup/sender_key_message.js +79 -0
  85. package/WASignalGroup/sender_key_name.js +59 -0
  86. package/WASignalGroup/sender_key_record.js +47 -0
  87. package/WASignalGroup/sender_key_state.js +110 -0
  88. package/WASignalGroup/sender_message_key.js +30 -0
  89. package/check-node-version.js +10 -0
  90. package/lib/Defaults/baileys-version.json +3 -0
  91. package/lib/Defaults/index.d.ts +51 -0
  92. package/lib/Defaults/index.js +108 -0
  93. package/lib/Defaults/phonenumber-mcc.json +223 -0
  94. package/lib/Signal/libsignal.d.ts +3 -0
  95. package/lib/Signal/libsignal.js +153 -0
  96. package/lib/Socket/Client/index.d.ts +2 -0
  97. package/lib/Socket/Client/index.js +18 -0
  98. package/lib/Socket/Client/types.d.ts +15 -0
  99. package/lib/Socket/Client/types.js +14 -0
  100. package/lib/Socket/Client/websocket.d.ts +12 -0
  101. package/lib/Socket/Client/websocket.js +57 -0
  102. package/lib/Socket/business.d.ts +181 -0
  103. package/lib/Socket/business.js +259 -0
  104. package/lib/Socket/chats.d.ts +95 -0
  105. package/lib/Socket/chats.js +906 -0
  106. package/lib/Socket/groups.d.ts +128 -0
  107. package/lib/Socket/groups.js +307 -0
  108. package/lib/Socket/index.d.ts +183 -0
  109. package/lib/Socket/index.js +10 -0
  110. package/lib/Socket/messages-recv.d.ts +170 -0
  111. package/lib/Socket/messages-recv.js +1072 -0
  112. package/lib/Socket/messages-send.d.ts +161 -0
  113. package/lib/Socket/messages-send.js +984 -0
  114. package/lib/Socket/newsletter.d.ts +140 -0
  115. package/lib/Socket/newsletter.js +242 -0
  116. package/lib/Socket/socket.d.ts +43 -0
  117. package/lib/Socket/socket.js +651 -0
  118. package/lib/Socket/usync.d.ts +36 -0
  119. package/lib/Socket/usync.js +71 -0
  120. package/lib/Store/index.d.ts +4 -0
  121. package/lib/Store/index.js +20 -0
  122. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  123. package/lib/Store/make-cache-manager-store.js +85 -0
  124. package/lib/Store/make-in-memory-store.d.ts +117 -0
  125. package/lib/Store/make-in-memory-store.js +420 -0
  126. package/lib/Store/make-ordered-dictionary.d.ts +12 -0
  127. package/lib/Store/make-ordered-dictionary.js +83 -0
  128. package/lib/Store/object-repository.d.ts +10 -0
  129. package/lib/Store/object-repository.js +28 -0
  130. package/lib/Types/Auth.d.ts +103 -0
  131. package/lib/Types/Auth.js +2 -0
  132. package/lib/Types/Call.d.ts +13 -0
  133. package/lib/Types/Call.js +2 -0
  134. package/lib/Types/Chat.d.ts +115 -0
  135. package/lib/Types/Chat.js +6 -0
  136. package/lib/Types/Contact.d.ts +24 -0
  137. package/lib/Types/Contact.js +2 -0
  138. package/lib/Types/Events.d.ts +208 -0
  139. package/lib/Types/Events.js +2 -0
  140. package/lib/Types/GroupMetadata.d.ts +58 -0
  141. package/lib/Types/GroupMetadata.js +2 -0
  142. package/lib/Types/Label.d.ts +46 -0
  143. package/lib/Types/Label.js +28 -0
  144. package/lib/Types/LabelAssociation.d.ts +29 -0
  145. package/lib/Types/LabelAssociation.js +10 -0
  146. package/lib/Types/Message.d.ts +391 -0
  147. package/lib/Types/Message.js +9 -0
  148. package/lib/Types/Newsletter.d.ts +92 -0
  149. package/lib/Types/Newsletter.js +33 -0
  150. package/lib/Types/Product.d.ts +78 -0
  151. package/lib/Types/Product.js +2 -0
  152. package/lib/Types/Signal.d.ts +57 -0
  153. package/lib/Types/Signal.js +2 -0
  154. package/lib/Types/Socket.d.ts +116 -0
  155. package/lib/Types/Socket.js +2 -0
  156. package/lib/Types/State.d.ts +27 -0
  157. package/lib/Types/State.js +2 -0
  158. package/lib/Types/USync.d.ts +25 -0
  159. package/lib/Types/USync.js +2 -0
  160. package/lib/Types/index.d.ts +70 -0
  161. package/lib/Types/index.js +42 -0
  162. package/lib/Utils/auth-utils.d.ts +18 -0
  163. package/lib/Utils/auth-utils.js +198 -0
  164. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  165. package/lib/Utils/baileys-event-stream.js +64 -0
  166. package/lib/Utils/business.d.ts +22 -0
  167. package/lib/Utils/business.js +239 -0
  168. package/lib/Utils/chat-utils.d.ts +70 -0
  169. package/lib/Utils/chat-utils.js +754 -0
  170. package/lib/Utils/crypto.d.ts +40 -0
  171. package/lib/Utils/crypto.js +150 -0
  172. package/lib/Utils/decode-wa-message.d.ts +36 -0
  173. package/lib/Utils/decode-wa-message.js +228 -0
  174. package/lib/Utils/event-buffer.d.ts +35 -0
  175. package/lib/Utils/event-buffer.js +539 -0
  176. package/lib/Utils/generics.d.ts +96 -0
  177. package/lib/Utils/generics.js +553 -0
  178. package/lib/Utils/history.d.ts +19 -0
  179. package/lib/Utils/history.js +93 -0
  180. package/lib/Utils/index.d.ts +19 -0
  181. package/lib/Utils/index.js +35 -0
  182. package/lib/Utils/link-preview.d.ts +21 -0
  183. package/lib/Utils/link-preview.js +112 -0
  184. package/lib/Utils/logger.d.ts +11 -0
  185. package/lib/Utils/logger.js +7 -0
  186. package/lib/Utils/lt-hash.d.ts +12 -0
  187. package/lib/Utils/lt-hash.js +53 -0
  188. package/lib/Utils/make-mutex.d.ts +7 -0
  189. package/lib/Utils/make-mutex.js +45 -0
  190. package/lib/Utils/messages-media.d.ts +104 -0
  191. package/lib/Utils/messages-media.js +751 -0
  192. package/lib/Utils/messages.d.ts +80 -0
  193. package/lib/Utils/messages.js +1371 -0
  194. package/lib/Utils/noise-handler.d.ts +19 -0
  195. package/lib/Utils/noise-handler.js +150 -0
  196. package/lib/Utils/process-message.d.ts +41 -0
  197. package/lib/Utils/process-message.js +378 -0
  198. package/lib/Utils/signal.d.ts +33 -0
  199. package/lib/Utils/signal.js +154 -0
  200. package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
  201. package/lib/Utils/use-mongo-file-auth-state.js +75 -0
  202. package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
  203. package/lib/Utils/use-multi-file-auth-state.js +123 -0
  204. package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
  205. package/lib/Utils/use-single-file-auth-state.js +75 -0
  206. package/lib/Utils/validate-connection.d.ts +10 -0
  207. package/lib/Utils/validate-connection.js +174 -0
  208. package/lib/WABinary/constants.d.ts +27 -0
  209. package/lib/WABinary/constants.js +45 -0
  210. package/lib/WABinary/decode.d.ts +6 -0
  211. package/lib/WABinary/decode.js +255 -0
  212. package/lib/WABinary/encode.d.ts +2 -0
  213. package/lib/WABinary/encode.js +243 -0
  214. package/lib/WABinary/generic-utils.d.ts +16 -0
  215. package/lib/WABinary/generic-utils.js +125 -0
  216. package/lib/WABinary/index.d.ts +5 -0
  217. package/lib/WABinary/index.js +21 -0
  218. package/lib/WABinary/jid-utils.d.ts +34 -0
  219. package/lib/WABinary/jid-utils.js +73 -0
  220. package/lib/WABinary/types.d.ts +18 -0
  221. package/lib/WABinary/types.js +2 -0
  222. package/lib/WAM/BinaryInfo.d.ts +16 -0
  223. package/lib/WAM/BinaryInfo.js +14 -0
  224. package/lib/WAM/constants.d.ts +39 -0
  225. package/lib/WAM/constants.js +15362 -0
  226. package/lib/WAM/encode.d.ts +2 -0
  227. package/lib/WAM/encode.js +156 -0
  228. package/lib/WAM/index.d.ts +3 -0
  229. package/lib/WAM/index.js +19 -0
  230. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
  231. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
  232. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
  233. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  234. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  235. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
  236. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  237. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
  238. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
  239. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
  240. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  241. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  242. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  243. package/lib/WAUSync/Protocols/index.js +22 -0
  244. package/lib/WAUSync/USyncQuery.d.ts +28 -0
  245. package/lib/WAUSync/USyncQuery.js +88 -0
  246. package/lib/WAUSync/USyncUser.d.ts +12 -0
  247. package/lib/WAUSync/USyncUser.js +27 -0
  248. package/lib/WAUSync/index.d.ts +3 -0
  249. package/lib/WAUSync/index.js +19 -0
  250. package/lib/index.d.ts +13 -0
  251. package/lib/index.js +9 -0
  252. package/package.json +66 -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,544 @@
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
+ }
18
+ /** Represents a StatusAttribution. */
19
+ class StatusAttribution implements IStatusAttribution {
20
+ /**
21
+ * Constructs a new StatusAttribution.
22
+ * @param [properties] Properties to set
23
+ */
24
+ constructor(properties?: StatusAttributions.IStatusAttribution);
25
+ /** StatusAttribution type. */
26
+ public type?: (StatusAttributions.StatusAttribution.Type|null);
27
+ /** StatusAttribution actionUrl. */
28
+ public actionUrl?: (string|null);
29
+ /** StatusAttribution statusReshare. */
30
+ public statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null);
31
+ /** StatusAttribution externalShare. */
32
+ public externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
33
+ /** StatusAttribution music. */
34
+ public music?: (StatusAttributions.StatusAttribution.IMusic|null);
35
+ /** StatusAttribution _type. */
36
+ public _type?: "type";
37
+ /** StatusAttribution _actionUrl. */
38
+ public _actionUrl?: "actionUrl";
39
+ /** StatusAttribution attributionData. */
40
+ public attributionData?: ("statusReshare"|"externalShare"|"music");
41
+ /**
42
+ * Creates a new StatusAttribution instance using the specified properties.
43
+ * @param [properties] Properties to set
44
+ * @returns StatusAttribution instance
45
+ */
46
+ public static create(properties?: StatusAttributions.IStatusAttribution): StatusAttributions.StatusAttribution;
47
+ /**
48
+ * Encodes the specified StatusAttribution message. Does not implicitly {@link StatusAttributions.StatusAttribution.verify|verify} messages.
49
+ * @param message StatusAttribution message or plain object to encode
50
+ * @param [writer] Writer to encode to
51
+ * @returns Writer
52
+ */
53
+ public static encode(message: StatusAttributions.IStatusAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
54
+ /**
55
+ * Encodes the specified StatusAttribution message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.verify|verify} messages.
56
+ * @param message StatusAttribution message or plain object to encode
57
+ * @param [writer] Writer to encode to
58
+ * @returns Writer
59
+ */
60
+ public static encodeDelimited(message: StatusAttributions.IStatusAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
61
+ /**
62
+ * Decodes a StatusAttribution message from the specified reader or buffer.
63
+ * @param reader Reader or buffer to decode from
64
+ * @param [length] Message length if known beforehand
65
+ * @returns StatusAttribution
66
+ * @throws {Error} If the payload is not a reader or valid buffer
67
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
68
+ */
69
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution;
70
+ /**
71
+ * Decodes a StatusAttribution message from the specified reader or buffer, length delimited.
72
+ * @param reader Reader or buffer to decode from
73
+ * @returns StatusAttribution
74
+ * @throws {Error} If the payload is not a reader or valid buffer
75
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76
+ */
77
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution;
78
+ /**
79
+ * Verifies a StatusAttribution message.
80
+ * @param message Plain object to verify
81
+ * @returns `null` if valid, otherwise the reason why it is not
82
+ */
83
+ public static verify(message: { [k: string]: any }): (string|null);
84
+ /**
85
+ * Creates a StatusAttribution message from a plain object. Also converts values to their respective internal types.
86
+ * @param object Plain object
87
+ * @returns StatusAttribution
88
+ */
89
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution;
90
+ /**
91
+ * Creates a plain object from a StatusAttribution message. Also converts values to other types if specified.
92
+ * @param message StatusAttribution
93
+ * @param [options] Conversion options
94
+ * @returns Plain object
95
+ */
96
+ public static toObject(message: StatusAttributions.StatusAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any };
97
+ /**
98
+ * Converts this StatusAttribution to JSON.
99
+ * @returns JSON object
100
+ */
101
+ public toJSON(): { [k: string]: any };
102
+ /**
103
+ * Gets the default type url for StatusAttribution
104
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
105
+ * @returns The default type url
106
+ */
107
+ public static getTypeUrl(typeUrlPrefix?: string): string;
108
+ }
109
+ namespace StatusAttribution {
110
+ /** Properties of an ExternalShare. */
111
+ interface IExternalShare {
112
+ /** ExternalShare actionUrl */
113
+ actionUrl?: (string|null);
114
+ /** ExternalShare source */
115
+ source?: (StatusAttributions.StatusAttribution.ExternalShare.Source|null);
116
+ /** ExternalShare duration */
117
+ duration?: (number|null);
118
+ /** ExternalShare actionFallbackUrl */
119
+ actionFallbackUrl?: (string|null);
120
+ }
121
+ /** Represents an ExternalShare. */
122
+ class ExternalShare implements IExternalShare {
123
+ /**
124
+ * Constructs a new ExternalShare.
125
+ * @param [properties] Properties to set
126
+ */
127
+ constructor(properties?: StatusAttributions.StatusAttribution.IExternalShare);
128
+ /** ExternalShare actionUrl. */
129
+ public actionUrl?: (string|null);
130
+ /** ExternalShare source. */
131
+ public source?: (StatusAttributions.StatusAttribution.ExternalShare.Source|null);
132
+ /** ExternalShare duration. */
133
+ public duration?: (number|null);
134
+ /** ExternalShare actionFallbackUrl. */
135
+ public actionFallbackUrl?: (string|null);
136
+ /** ExternalShare _actionUrl. */
137
+ public _actionUrl?: "actionUrl";
138
+ /** ExternalShare _source. */
139
+ public _source?: "source";
140
+ /** ExternalShare _duration. */
141
+ public _duration?: "duration";
142
+ /** ExternalShare _actionFallbackUrl. */
143
+ public _actionFallbackUrl?: "actionFallbackUrl";
144
+ /**
145
+ * Creates a new ExternalShare instance using the specified properties.
146
+ * @param [properties] Properties to set
147
+ * @returns ExternalShare instance
148
+ */
149
+ public static create(properties?: StatusAttributions.StatusAttribution.IExternalShare): StatusAttributions.StatusAttribution.ExternalShare;
150
+ /**
151
+ * Encodes the specified ExternalShare message. Does not implicitly {@link StatusAttributions.StatusAttribution.ExternalShare.verify|verify} messages.
152
+ * @param message ExternalShare message or plain object to encode
153
+ * @param [writer] Writer to encode to
154
+ * @returns Writer
155
+ */
156
+ public static encode(message: StatusAttributions.StatusAttribution.IExternalShare, writer?: $protobuf.Writer): $protobuf.Writer;
157
+ /**
158
+ * Encodes the specified ExternalShare message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.ExternalShare.verify|verify} messages.
159
+ * @param message ExternalShare message or plain object to encode
160
+ * @param [writer] Writer to encode to
161
+ * @returns Writer
162
+ */
163
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IExternalShare, writer?: $protobuf.Writer): $protobuf.Writer;
164
+ /**
165
+ * Decodes an ExternalShare message from the specified reader or buffer.
166
+ * @param reader Reader or buffer to decode from
167
+ * @param [length] Message length if known beforehand
168
+ * @returns ExternalShare
169
+ * @throws {Error} If the payload is not a reader or valid buffer
170
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
171
+ */
172
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.ExternalShare;
173
+ /**
174
+ * Decodes an ExternalShare message from the specified reader or buffer, length delimited.
175
+ * @param reader Reader or buffer to decode from
176
+ * @returns ExternalShare
177
+ * @throws {Error} If the payload is not a reader or valid buffer
178
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
179
+ */
180
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.ExternalShare;
181
+ /**
182
+ * Verifies an ExternalShare message.
183
+ * @param message Plain object to verify
184
+ * @returns `null` if valid, otherwise the reason why it is not
185
+ */
186
+ public static verify(message: { [k: string]: any }): (string|null);
187
+ /**
188
+ * Creates an ExternalShare message from a plain object. Also converts values to their respective internal types.
189
+ * @param object Plain object
190
+ * @returns ExternalShare
191
+ */
192
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.ExternalShare;
193
+ /**
194
+ * Creates a plain object from an ExternalShare message. Also converts values to other types if specified.
195
+ * @param message ExternalShare
196
+ * @param [options] Conversion options
197
+ * @returns Plain object
198
+ */
199
+ public static toObject(message: StatusAttributions.StatusAttribution.ExternalShare, options?: $protobuf.IConversionOptions): { [k: string]: any };
200
+ /**
201
+ * Converts this ExternalShare to JSON.
202
+ * @returns JSON object
203
+ */
204
+ public toJSON(): { [k: string]: any };
205
+ /**
206
+ * Gets the default type url for ExternalShare
207
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
208
+ * @returns The default type url
209
+ */
210
+ public static getTypeUrl(typeUrlPrefix?: string): string;
211
+ }
212
+ namespace ExternalShare {
213
+ /** Source enum. */
214
+ enum Source {
215
+ UNKNOWN = 0,
216
+ INSTAGRAM = 1,
217
+ FACEBOOK = 2,
218
+ MESSENGER = 3,
219
+ SPOTIFY = 4
220
+ }
221
+ }
222
+ /** Properties of a Music. */
223
+ interface IMusic {
224
+ /** Music authorName */
225
+ authorName?: (string|null);
226
+ /** Music songId */
227
+ songId?: (string|null);
228
+ /** Music title */
229
+ title?: (string|null);
230
+ /** Music author */
231
+ author?: (string|null);
232
+ /** Music artistAttribution */
233
+ artistAttribution?: (string|null);
234
+ /** Music isExplicit */
235
+ isExplicit?: (boolean|null);
236
+ }
237
+ /** Represents a Music. */
238
+ class Music implements IMusic {
239
+ /**
240
+ * Constructs a new Music.
241
+ * @param [properties] Properties to set
242
+ */
243
+ constructor(properties?: StatusAttributions.StatusAttribution.IMusic);
244
+ /** Music authorName. */
245
+ public authorName?: (string|null);
246
+ /** Music songId. */
247
+ public songId?: (string|null);
248
+ /** Music title. */
249
+ public title?: (string|null);
250
+ /** Music author. */
251
+ public author?: (string|null);
252
+ /** Music artistAttribution. */
253
+ public artistAttribution?: (string|null);
254
+ /** Music isExplicit. */
255
+ public isExplicit?: (boolean|null);
256
+ /** Music _authorName. */
257
+ public _authorName?: "authorName";
258
+ /** Music _songId. */
259
+ public _songId?: "songId";
260
+ /** Music _title. */
261
+ public _title?: "title";
262
+ /** Music _author. */
263
+ public _author?: "author";
264
+ /** Music _artistAttribution. */
265
+ public _artistAttribution?: "artistAttribution";
266
+ /** Music _isExplicit. */
267
+ public _isExplicit?: "isExplicit";
268
+ /**
269
+ * Creates a new Music instance using the specified properties.
270
+ * @param [properties] Properties to set
271
+ * @returns Music instance
272
+ */
273
+ public static create(properties?: StatusAttributions.StatusAttribution.IMusic): StatusAttributions.StatusAttribution.Music;
274
+ /**
275
+ * Encodes the specified Music message. Does not implicitly {@link StatusAttributions.StatusAttribution.Music.verify|verify} messages.
276
+ * @param message Music message or plain object to encode
277
+ * @param [writer] Writer to encode to
278
+ * @returns Writer
279
+ */
280
+ public static encode(message: StatusAttributions.StatusAttribution.IMusic, writer?: $protobuf.Writer): $protobuf.Writer;
281
+ /**
282
+ * Encodes the specified Music message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.Music.verify|verify} messages.
283
+ * @param message Music message or plain object to encode
284
+ * @param [writer] Writer to encode to
285
+ * @returns Writer
286
+ */
287
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IMusic, writer?: $protobuf.Writer): $protobuf.Writer;
288
+ /**
289
+ * Decodes a Music message from the specified reader or buffer.
290
+ * @param reader Reader or buffer to decode from
291
+ * @param [length] Message length if known beforehand
292
+ * @returns Music
293
+ * @throws {Error} If the payload is not a reader or valid buffer
294
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
295
+ */
296
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.Music;
297
+ /**
298
+ * Decodes a Music message from the specified reader or buffer, length delimited.
299
+ * @param reader Reader or buffer to decode from
300
+ * @returns Music
301
+ * @throws {Error} If the payload is not a reader or valid buffer
302
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
303
+ */
304
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.Music;
305
+ /**
306
+ * Verifies a Music message.
307
+ * @param message Plain object to verify
308
+ * @returns `null` if valid, otherwise the reason why it is not
309
+ */
310
+ public static verify(message: { [k: string]: any }): (string|null);
311
+ /**
312
+ * Creates a Music message from a plain object. Also converts values to their respective internal types.
313
+ * @param object Plain object
314
+ * @returns Music
315
+ */
316
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.Music;
317
+ /**
318
+ * Creates a plain object from a Music message. Also converts values to other types if specified.
319
+ * @param message Music
320
+ * @param [options] Conversion options
321
+ * @returns Plain object
322
+ */
323
+ public static toObject(message: StatusAttributions.StatusAttribution.Music, options?: $protobuf.IConversionOptions): { [k: string]: any };
324
+ /**
325
+ * Converts this Music to JSON.
326
+ * @returns JSON object
327
+ */
328
+ public toJSON(): { [k: string]: any };
329
+ /**
330
+ * Gets the default type url for Music
331
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
332
+ * @returns The default type url
333
+ */
334
+ public static getTypeUrl(typeUrlPrefix?: string): string;
335
+ }
336
+ /** Properties of a StatusReshare. */
337
+ interface IStatusReshare {
338
+ /** StatusReshare source */
339
+ source?: (StatusAttributions.StatusAttribution.StatusReshare.Source|null);
340
+ /** StatusReshare metadata */
341
+ metadata?: (StatusAttributions.StatusAttribution.StatusReshare.IMetadata|null);
342
+ }
343
+ /** Represents a StatusReshare. */
344
+ class StatusReshare implements IStatusReshare {
345
+ /**
346
+ * Constructs a new StatusReshare.
347
+ * @param [properties] Properties to set
348
+ */
349
+ constructor(properties?: StatusAttributions.StatusAttribution.IStatusReshare);
350
+ /** StatusReshare source. */
351
+ public source?: (StatusAttributions.StatusAttribution.StatusReshare.Source|null);
352
+ /** StatusReshare metadata. */
353
+ public metadata?: (StatusAttributions.StatusAttribution.StatusReshare.IMetadata|null);
354
+ /** StatusReshare _source. */
355
+ public _source?: "source";
356
+ /** StatusReshare _metadata. */
357
+ public _metadata?: "metadata";
358
+ /**
359
+ * Creates a new StatusReshare instance using the specified properties.
360
+ * @param [properties] Properties to set
361
+ * @returns StatusReshare instance
362
+ */
363
+ public static create(properties?: StatusAttributions.StatusAttribution.IStatusReshare): StatusAttributions.StatusAttribution.StatusReshare;
364
+ /**
365
+ * Encodes the specified StatusReshare message. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.verify|verify} messages.
366
+ * @param message StatusReshare message or plain object to encode
367
+ * @param [writer] Writer to encode to
368
+ * @returns Writer
369
+ */
370
+ public static encode(message: StatusAttributions.StatusAttribution.IStatusReshare, writer?: $protobuf.Writer): $protobuf.Writer;
371
+ /**
372
+ * Encodes the specified StatusReshare message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.verify|verify} messages.
373
+ * @param message StatusReshare message or plain object to encode
374
+ * @param [writer] Writer to encode to
375
+ * @returns Writer
376
+ */
377
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IStatusReshare, writer?: $protobuf.Writer): $protobuf.Writer;
378
+ /**
379
+ * Decodes a StatusReshare 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 StatusReshare
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.StatusReshare;
387
+ /**
388
+ * Decodes a StatusReshare message from the specified reader or buffer, length delimited.
389
+ * @param reader Reader or buffer to decode from
390
+ * @returns StatusReshare
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.StatusReshare;
395
+ /**
396
+ * Verifies a StatusReshare 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 StatusReshare message from a plain object. Also converts values to their respective internal types.
403
+ * @param object Plain object
404
+ * @returns StatusReshare
405
+ */
406
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.StatusReshare;
407
+ /**
408
+ * Creates a plain object from a StatusReshare message. Also converts values to other types if specified.
409
+ * @param message StatusReshare
410
+ * @param [options] Conversion options
411
+ * @returns Plain object
412
+ */
413
+ public static toObject(message: StatusAttributions.StatusAttribution.StatusReshare, options?: $protobuf.IConversionOptions): { [k: string]: any };
414
+ /**
415
+ * Converts this StatusReshare to JSON.
416
+ * @returns JSON object
417
+ */
418
+ public toJSON(): { [k: string]: any };
419
+ /**
420
+ * Gets the default type url for StatusReshare
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
+ namespace StatusReshare {
427
+ /** Properties of a Metadata. */
428
+ interface IMetadata {
429
+ /** Metadata duration */
430
+ duration?: (number|null);
431
+ /** Metadata channelJid */
432
+ channelJid?: (string|null);
433
+ /** Metadata channelMessageId */
434
+ channelMessageId?: (number|null);
435
+ /** Metadata hasMultipleReshares */
436
+ hasMultipleReshares?: (boolean|null);
437
+ }
438
+ /** Represents a Metadata. */
439
+ class Metadata implements IMetadata {
440
+ /**
441
+ * Constructs a new Metadata.
442
+ * @param [properties] Properties to set
443
+ */
444
+ constructor(properties?: StatusAttributions.StatusAttribution.StatusReshare.IMetadata);
445
+ /** Metadata duration. */
446
+ public duration?: (number|null);
447
+ /** Metadata channelJid. */
448
+ public channelJid?: (string|null);
449
+ /** Metadata channelMessageId. */
450
+ public channelMessageId?: (number|null);
451
+ /** Metadata hasMultipleReshares. */
452
+ public hasMultipleReshares?: (boolean|null);
453
+ /** Metadata _duration. */
454
+ public _duration?: "duration";
455
+ /** Metadata _channelJid. */
456
+ public _channelJid?: "channelJid";
457
+ /** Metadata _channelMessageId. */
458
+ public _channelMessageId?: "channelMessageId";
459
+ /** Metadata _hasMultipleReshares. */
460
+ public _hasMultipleReshares?: "hasMultipleReshares";
461
+ /**
462
+ * Creates a new Metadata instance using the specified properties.
463
+ * @param [properties] Properties to set
464
+ * @returns Metadata instance
465
+ */
466
+ public static create(properties?: StatusAttributions.StatusAttribution.StatusReshare.IMetadata): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
467
+ /**
468
+ * Encodes the specified Metadata message. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.Metadata.verify|verify} messages.
469
+ * @param message Metadata message or plain object to encode
470
+ * @param [writer] Writer to encode to
471
+ * @returns Writer
472
+ */
473
+ public static encode(message: StatusAttributions.StatusAttribution.StatusReshare.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
474
+ /**
475
+ * Encodes the specified Metadata message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.Metadata.verify|verify} messages.
476
+ * @param message Metadata message or plain object to encode
477
+ * @param [writer] Writer to encode to
478
+ * @returns Writer
479
+ */
480
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.StatusReshare.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
481
+ /**
482
+ * Decodes a Metadata message from the specified reader or buffer.
483
+ * @param reader Reader or buffer to decode from
484
+ * @param [length] Message length if known beforehand
485
+ * @returns Metadata
486
+ * @throws {Error} If the payload is not a reader or valid buffer
487
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
488
+ */
489
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
490
+ /**
491
+ * Decodes a Metadata message from the specified reader or buffer, length delimited.
492
+ * @param reader Reader or buffer to decode from
493
+ * @returns Metadata
494
+ * @throws {Error} If the payload is not a reader or valid buffer
495
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
496
+ */
497
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
498
+ /**
499
+ * Verifies a Metadata message.
500
+ * @param message Plain object to verify
501
+ * @returns `null` if valid, otherwise the reason why it is not
502
+ */
503
+ public static verify(message: { [k: string]: any }): (string|null);
504
+ /**
505
+ * Creates a Metadata message from a plain object. Also converts values to their respective internal types.
506
+ * @param object Plain object
507
+ * @returns Metadata
508
+ */
509
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
510
+ /**
511
+ * Creates a plain object from a Metadata message. Also converts values to other types if specified.
512
+ * @param message Metadata
513
+ * @param [options] Conversion options
514
+ * @returns Plain object
515
+ */
516
+ public static toObject(message: StatusAttributions.StatusAttribution.StatusReshare.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
517
+ /**
518
+ * Converts this Metadata to JSON.
519
+ * @returns JSON object
520
+ */
521
+ public toJSON(): { [k: string]: any };
522
+ /**
523
+ * Gets the default type url for Metadata
524
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
525
+ * @returns The default type url
526
+ */
527
+ public static getTypeUrl(typeUrlPrefix?: string): string;
528
+ }
529
+ /** Source enum. */
530
+ enum Source {
531
+ UNKNOWN = 0,
532
+ INTERNAL_RESHARE = 1,
533
+ MENTION_RESHARE = 2,
534
+ CHANNEL_RESHARE = 3
535
+ }
536
+ }
537
+ /** Type enum. */
538
+ enum Type {
539
+ RESHARE = 0,
540
+ EXTERNAL_SHARE = 1,
541
+ MUSIC = 2
542
+ }
543
+ }
544
+ }