@hansaka02/baileys 7.3.2 → 7.3.6

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 (210) hide show
  1. package/lib/Defaults/baileys-version.json +2 -2
  2. package/lib/Defaults/connection.js +51 -0
  3. package/lib/Defaults/constants.js +74 -0
  4. package/lib/Defaults/history.js +19 -0
  5. package/lib/Defaults/index.js +36 -142
  6. package/lib/Defaults/media.js +48 -0
  7. package/lib/Defaults/prefix.js +18 -0
  8. package/lib/Signal/Group/group-session-builder.js +10 -42
  9. package/lib/Signal/Group/group_cipher.js +9 -6
  10. package/lib/Signal/Group/index.js +39 -53
  11. package/lib/Signal/Group/keyhelper.js +8 -41
  12. package/lib/Signal/Group/sender-chain-key.js +5 -18
  13. package/lib/Signal/Group/sender-key-distribution-message.js +7 -7
  14. package/lib/Signal/Group/sender-key-message.js +12 -8
  15. package/lib/Signal/Group/sender-key-record.js +7 -16
  16. package/lib/Signal/Group/sender-key-state.js +15 -61
  17. package/lib/Signal/Group/sender-message-key.js +2 -2
  18. package/lib/Signal/libsignal.js +237 -177
  19. package/lib/Signal/lid-mapping.js +128 -71
  20. package/lib/Socket/Client/types.js +2 -2
  21. package/lib/Socket/Client/websocket.js +25 -16
  22. package/lib/Socket/business.js +46 -33
  23. package/lib/Socket/chats.js +286 -170
  24. package/lib/Socket/community.js +215 -77
  25. package/lib/Socket/groups.js +77 -61
  26. package/lib/Socket/index.js +4 -4
  27. package/lib/Socket/messages-recv.js +629 -457
  28. package/lib/Socket/messages-send.js +645 -656
  29. package/lib/Socket/mex.js +61 -0
  30. package/lib/Socket/newsletter.js +166 -245
  31. package/lib/Socket/socket.js +396 -170
  32. package/lib/Store/index.js +27 -11
  33. package/lib/Store/make-cache-manager-store.js +14 -15
  34. package/lib/Store/make-in-memory-store.js +28 -24
  35. package/lib/Types/LabelAssociation.js +2 -2
  36. package/lib/Types/Message.js +6 -6
  37. package/lib/Types/MexUpdates.js +5 -5
  38. package/lib/Types/Newsletter.js +32 -25
  39. package/lib/Types/State.js +4 -4
  40. package/lib/Types/index.js +28 -12
  41. package/lib/Utils/auth-utils.js +212 -375
  42. package/lib/Utils/baileys-event-stream.js +68 -69
  43. package/lib/Utils/browser-utils.js +43 -0
  44. package/lib/Utils/business.js +63 -53
  45. package/lib/Utils/chat-utils.js +241 -106
  46. package/lib/Utils/crypto.js +25 -45
  47. package/lib/Utils/decode-wa-message.js +361 -311
  48. package/lib/Utils/event-buffer.js +97 -42
  49. package/lib/Utils/generics.js +90 -207
  50. package/lib/Utils/history.js +29 -27
  51. package/lib/Utils/index.js +28 -14
  52. package/lib/Utils/link-preview.js +24 -62
  53. package/lib/Utils/logger.js +5 -5
  54. package/lib/Utils/lt-hash.js +29 -23
  55. package/lib/Utils/make-mutex.js +26 -28
  56. package/lib/Utils/message-retry-manager.js +55 -7
  57. package/lib/Utils/messages-media.js +434 -247
  58. package/lib/Utils/messages.js +963 -917
  59. package/lib/Utils/noise-handler.js +60 -20
  60. package/lib/Utils/pre-key-manager.js +126 -0
  61. package/lib/Utils/process-message.js +216 -141
  62. package/lib/Utils/signal.js +75 -37
  63. package/lib/Utils/use-multi-file-auth-state.js +18 -22
  64. package/lib/Utils/validate-connection.js +96 -66
  65. package/lib/WABinary/constants.js +1268 -1268
  66. package/lib/WABinary/decode.js +62 -34
  67. package/lib/WABinary/encode.js +57 -36
  68. package/lib/WABinary/generic-utils.js +4 -4
  69. package/lib/WABinary/index.js +27 -11
  70. package/lib/WABinary/jid-utils.js +58 -11
  71. package/lib/WAM/constants.js +19064 -11563
  72. package/lib/WAM/encode.js +71 -14
  73. package/lib/WAM/index.js +27 -11
  74. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
  75. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  76. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
  77. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
  78. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
  79. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
  80. package/lib/WAUSync/Protocols/index.js +27 -11
  81. package/lib/WAUSync/USyncQuery.js +51 -28
  82. package/lib/WAUSync/index.js +27 -11
  83. package/lib/index.js +60 -31
  84. package/package.json +12 -17
  85. package/WAProto/AICommon/AICommon.d.ts +0 -11702
  86. package/WAProto/Adv/Adv.d.ts +0 -643
  87. package/WAProto/BotMetadata/BotMetadata.d.ts +0 -5654
  88. package/WAProto/Cert/Cert.d.ts +0 -613
  89. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +0 -476
  90. package/WAProto/CompanionReg/CompanionReg.d.ts +0 -1361
  91. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +0 -577
  92. package/WAProto/E2E/E2E.d.ts +0 -41724
  93. package/WAProto/Ephemeral/Ephemeral.d.ts +0 -114
  94. package/WAProto/HistorySync/HistorySync.d.ts +0 -51700
  95. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +0 -229
  96. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +0 -583
  97. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +0 -42897
  98. package/WAProto/MmsRetry/MmsRetry.d.ts +0 -243
  99. package/WAProto/Protocol/Protocol.d.ts +0 -270
  100. package/WAProto/Reporting/Reporting.d.ts +0 -371
  101. package/WAProto/ServerSync/ServerSync.d.ts +0 -1285
  102. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +0 -1868
  103. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +0 -767
  104. package/WAProto/StatusAttributions/StatusAttributions.d.ts +0 -1027
  105. package/WAProto/SyncAction/SyncAction.d.ts +0 -11193
  106. package/WAProto/UserPassword/UserPassword.d.ts +0 -363
  107. package/WAProto/VnameCert/VnameCert.d.ts +0 -821
  108. package/WAProto/Wa6/Wa6.d.ts +0 -2128
  109. package/WAProto/Web/Web.d.ts +0 -46383
  110. package/WAProto/index.d.ts +0 -55
  111. package/lib/Defaults/index.d.ts +0 -77
  112. package/lib/Signal/Group/ciphertext-message.d.ts +0 -9
  113. package/lib/Signal/Group/group-session-builder.d.ts +0 -17
  114. package/lib/Signal/Group/group_cipher.d.ts +0 -19
  115. package/lib/Signal/Group/index.d.ts +0 -11
  116. package/lib/Signal/Group/keyhelper.d.ts +0 -16
  117. package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
  118. package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
  119. package/lib/Signal/Group/sender-key-message.d.ts +0 -19
  120. package/lib/Signal/Group/sender-key-name.d.ts +0 -19
  121. package/lib/Signal/Group/sender-key-record.d.ts +0 -32
  122. package/lib/Signal/Group/sender-key-state.d.ts +0 -44
  123. package/lib/Signal/Group/sender-message-key.d.ts +0 -11
  124. package/lib/Signal/libsignal.d.ts +0 -8
  125. package/lib/Signal/lid-mapping.d.ts +0 -28
  126. package/lib/Socket/Client/index.d.ts +0 -2
  127. package/lib/Socket/Client/types.d.ts +0 -16
  128. package/lib/Socket/Client/websocket.d.ts +0 -13
  129. package/lib/Socket/business.d.ts +0 -187
  130. package/lib/Socket/chats.d.ts +0 -97
  131. package/lib/Socket/community.d.ts +0 -129
  132. package/lib/Socket/groups.d.ts +0 -129
  133. package/lib/Socket/index.d.ts +0 -191
  134. package/lib/Socket/messages-recv.d.ts +0 -174
  135. package/lib/Socket/messages-send.d.ts +0 -165
  136. package/lib/Socket/newsletter.d.ts +0 -145
  137. package/lib/Socket/socket.d.ts +0 -45
  138. package/lib/Socket/usync.d.ts +0 -37
  139. package/lib/Socket/usync.js +0 -83
  140. package/lib/Store/index.d.ts +0 -4
  141. package/lib/Store/make-cache-manager-store.d.ts +0 -14
  142. package/lib/Store/make-in-memory-store.d.ts +0 -123
  143. package/lib/Store/make-ordered-dictionary.d.ts +0 -12
  144. package/lib/Store/object-repository.d.ts +0 -10
  145. package/lib/Types/Auth.d.ts +0 -121
  146. package/lib/Types/Bussiness.d.ts +0 -28
  147. package/lib/Types/Call.d.ts +0 -14
  148. package/lib/Types/Chat.d.ts +0 -143
  149. package/lib/Types/Contact.d.ts +0 -23
  150. package/lib/Types/Events.d.ts +0 -226
  151. package/lib/Types/GroupMetadata.d.ts +0 -66
  152. package/lib/Types/Label.d.ts +0 -48
  153. package/lib/Types/LabelAssociation.d.ts +0 -35
  154. package/lib/Types/Message.d.ts +0 -484
  155. package/lib/Types/MexUpdates.d.ts +0 -9
  156. package/lib/Types/Newsletter.d.ts +0 -109
  157. package/lib/Types/Product.d.ts +0 -92
  158. package/lib/Types/Signal.d.ts +0 -98
  159. package/lib/Types/Socket.d.ts +0 -141
  160. package/lib/Types/State.d.ts +0 -41
  161. package/lib/Types/USync.d.ts +0 -26
  162. package/lib/Types/index.d.ts +0 -80
  163. package/lib/Utils/auth-utils.d.ts +0 -21
  164. package/lib/Utils/baileys-event-stream.d.ts +0 -18
  165. package/lib/Utils/business.d.ts +0 -29
  166. package/lib/Utils/chat-utils.d.ts +0 -82
  167. package/lib/Utils/crypto.d.ts +0 -56
  168. package/lib/Utils/decode-wa-message.d.ts +0 -53
  169. package/lib/Utils/event-buffer.d.ts +0 -39
  170. package/lib/Utils/generics.d.ts +0 -117
  171. package/lib/Utils/history.d.ts +0 -23
  172. package/lib/Utils/index.d.ts +0 -20
  173. package/lib/Utils/link-preview.d.ts +0 -23
  174. package/lib/Utils/logger.d.ts +0 -13
  175. package/lib/Utils/lt-hash.d.ts +0 -14
  176. package/lib/Utils/make-mutex.d.ts +0 -9
  177. package/lib/Utils/message-retry-manager.d.ts +0 -88
  178. package/lib/Utils/messages-media.d.ts +0 -135
  179. package/lib/Utils/messages.d.ts +0 -105
  180. package/lib/Utils/noise-handler.d.ts +0 -20
  181. package/lib/Utils/process-message.d.ts +0 -49
  182. package/lib/Utils/signal.d.ts +0 -42
  183. package/lib/Utils/use-mongo-file-auth-state.d.ts +0 -6
  184. package/lib/Utils/use-mongo-file-auth-state.js +0 -84
  185. package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
  186. package/lib/Utils/use-single-file-auth-state.d.ts +0 -13
  187. package/lib/Utils/use-single-file-auth-state.js +0 -80
  188. package/lib/Utils/validate-connection.d.ts +0 -13
  189. package/lib/WABinary/constants.d.ts +0 -30
  190. package/lib/WABinary/decode.d.ts +0 -9
  191. package/lib/WABinary/encode.d.ts +0 -3
  192. package/lib/WABinary/generic-utils.d.ts +0 -28
  193. package/lib/WABinary/index.d.ts +0 -5
  194. package/lib/WABinary/jid-utils.d.ts +0 -58
  195. package/lib/WABinary/types.d.ts +0 -22
  196. package/lib/WAM/BinaryInfo.d.ts +0 -16
  197. package/lib/WAM/constants.d.ts +0 -47
  198. package/lib/WAM/encode.d.ts +0 -3
  199. package/lib/WAM/index.d.ts +0 -3
  200. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +0 -28
  201. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
  202. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -26
  203. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -14
  204. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +0 -10
  205. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -14
  206. package/lib/WAUSync/Protocols/index.d.ts +0 -6
  207. package/lib/WAUSync/USyncQuery.d.ts +0 -31
  208. package/lib/WAUSync/USyncUser.d.ts +0 -12
  209. package/lib/WAUSync/index.d.ts +0 -3
  210. package/lib/index.d.ts +0 -13
@@ -1,821 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace VnameCert. */
4
- export namespace VnameCert {
5
-
6
- /** Properties of a BizIdentityInfo. */
7
- interface IBizIdentityInfo {
8
-
9
- /** BizIdentityInfo vlevel */
10
- vlevel?: (VnameCert.BizIdentityInfo.VerifiedLevelValue|null);
11
-
12
- /** BizIdentityInfo vnameCert */
13
- vnameCert?: (VnameCert.IVerifiedNameCertificate|null);
14
-
15
- /** BizIdentityInfo signed */
16
- signed?: (boolean|null);
17
-
18
- /** BizIdentityInfo revoked */
19
- revoked?: (boolean|null);
20
-
21
- /** BizIdentityInfo hostStorage */
22
- hostStorage?: (VnameCert.BizIdentityInfo.HostStorageType|null);
23
-
24
- /** BizIdentityInfo actualActors */
25
- actualActors?: (VnameCert.BizIdentityInfo.ActualActorsType|null);
26
-
27
- /** BizIdentityInfo privacyModeTs */
28
- privacyModeTs?: (number|Long|null);
29
-
30
- /** BizIdentityInfo featureControls */
31
- featureControls?: (number|Long|null);
32
- }
33
-
34
- /** Represents a BizIdentityInfo. */
35
- class BizIdentityInfo implements IBizIdentityInfo {
36
-
37
- /**
38
- * Constructs a new BizIdentityInfo.
39
- * @param [properties] Properties to set
40
- */
41
- constructor(properties?: VnameCert.IBizIdentityInfo);
42
-
43
- /** BizIdentityInfo vlevel. */
44
- public vlevel?: (VnameCert.BizIdentityInfo.VerifiedLevelValue|null);
45
-
46
- /** BizIdentityInfo vnameCert. */
47
- public vnameCert?: (VnameCert.IVerifiedNameCertificate|null);
48
-
49
- /** BizIdentityInfo signed. */
50
- public signed?: (boolean|null);
51
-
52
- /** BizIdentityInfo revoked. */
53
- public revoked?: (boolean|null);
54
-
55
- /** BizIdentityInfo hostStorage. */
56
- public hostStorage?: (VnameCert.BizIdentityInfo.HostStorageType|null);
57
-
58
- /** BizIdentityInfo actualActors. */
59
- public actualActors?: (VnameCert.BizIdentityInfo.ActualActorsType|null);
60
-
61
- /** BizIdentityInfo privacyModeTs. */
62
- public privacyModeTs?: (number|Long|null);
63
-
64
- /** BizIdentityInfo featureControls. */
65
- public featureControls?: (number|Long|null);
66
-
67
- /** BizIdentityInfo _vlevel. */
68
- public _vlevel?: "vlevel";
69
-
70
- /** BizIdentityInfo _vnameCert. */
71
- public _vnameCert?: "vnameCert";
72
-
73
- /** BizIdentityInfo _signed. */
74
- public _signed?: "signed";
75
-
76
- /** BizIdentityInfo _revoked. */
77
- public _revoked?: "revoked";
78
-
79
- /** BizIdentityInfo _hostStorage. */
80
- public _hostStorage?: "hostStorage";
81
-
82
- /** BizIdentityInfo _actualActors. */
83
- public _actualActors?: "actualActors";
84
-
85
- /** BizIdentityInfo _privacyModeTs. */
86
- public _privacyModeTs?: "privacyModeTs";
87
-
88
- /** BizIdentityInfo _featureControls. */
89
- public _featureControls?: "featureControls";
90
-
91
- /**
92
- * Creates a new BizIdentityInfo instance using the specified properties.
93
- * @param [properties] Properties to set
94
- * @returns BizIdentityInfo instance
95
- */
96
- public static create(properties?: VnameCert.IBizIdentityInfo): VnameCert.BizIdentityInfo;
97
-
98
- /**
99
- * Encodes the specified BizIdentityInfo message. Does not implicitly {@link VnameCert.BizIdentityInfo.verify|verify} messages.
100
- * @param message BizIdentityInfo message or plain object to encode
101
- * @param [writer] Writer to encode to
102
- * @returns Writer
103
- */
104
- public static encode(message: VnameCert.IBizIdentityInfo, writer?: $protobuf.Writer): $protobuf.Writer;
105
-
106
- /**
107
- * Encodes the specified BizIdentityInfo message, length delimited. Does not implicitly {@link VnameCert.BizIdentityInfo.verify|verify} messages.
108
- * @param message BizIdentityInfo message or plain object to encode
109
- * @param [writer] Writer to encode to
110
- * @returns Writer
111
- */
112
- public static encodeDelimited(message: VnameCert.IBizIdentityInfo, writer?: $protobuf.Writer): $protobuf.Writer;
113
-
114
- /**
115
- * Decodes a BizIdentityInfo message from the specified reader or buffer.
116
- * @param reader Reader or buffer to decode from
117
- * @param [length] Message length if known beforehand
118
- * @returns BizIdentityInfo
119
- * @throws {Error} If the payload is not a reader or valid buffer
120
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
121
- */
122
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VnameCert.BizIdentityInfo;
123
-
124
- /**
125
- * Decodes a BizIdentityInfo message from the specified reader or buffer, length delimited.
126
- * @param reader Reader or buffer to decode from
127
- * @returns BizIdentityInfo
128
- * @throws {Error} If the payload is not a reader or valid buffer
129
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
130
- */
131
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VnameCert.BizIdentityInfo;
132
-
133
- /**
134
- * Verifies a BizIdentityInfo message.
135
- * @param message Plain object to verify
136
- * @returns `null` if valid, otherwise the reason why it is not
137
- */
138
- public static verify(message: { [k: string]: any }): (string|null);
139
-
140
- /**
141
- * Creates a BizIdentityInfo message from a plain object. Also converts values to their respective internal types.
142
- * @param object Plain object
143
- * @returns BizIdentityInfo
144
- */
145
- public static fromObject(object: { [k: string]: any }): VnameCert.BizIdentityInfo;
146
-
147
- /**
148
- * Creates a plain object from a BizIdentityInfo message. Also converts values to other types if specified.
149
- * @param message BizIdentityInfo
150
- * @param [options] Conversion options
151
- * @returns Plain object
152
- */
153
- public static toObject(message: VnameCert.BizIdentityInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
154
-
155
- /**
156
- * Converts this BizIdentityInfo to JSON.
157
- * @returns JSON object
158
- */
159
- public toJSON(): { [k: string]: any };
160
-
161
- /**
162
- * Gets the default type url for BizIdentityInfo
163
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
164
- * @returns The default type url
165
- */
166
- public static getTypeUrl(typeUrlPrefix?: string): string;
167
- }
168
-
169
- namespace BizIdentityInfo {
170
-
171
- /** ActualActorsType enum. */
172
- enum ActualActorsType {
173
- SELF = 0,
174
- BSP = 1
175
- }
176
-
177
- /** HostStorageType enum. */
178
- enum HostStorageType {
179
- ON_PREMISE = 0,
180
- FACEBOOK = 1
181
- }
182
-
183
- /** VerifiedLevelValue enum. */
184
- enum VerifiedLevelValue {
185
- UNKNOWN = 0,
186
- LOW = 1,
187
- HIGH = 2
188
- }
189
- }
190
-
191
- /** Properties of a BizAccountLinkInfo. */
192
- interface IBizAccountLinkInfo {
193
-
194
- /** BizAccountLinkInfo whatsappBizAcctFbid */
195
- whatsappBizAcctFbid?: (number|Long|null);
196
-
197
- /** BizAccountLinkInfo whatsappAcctNumber */
198
- whatsappAcctNumber?: (string|null);
199
-
200
- /** BizAccountLinkInfo issueTime */
201
- issueTime?: (number|Long|null);
202
-
203
- /** BizAccountLinkInfo hostStorage */
204
- hostStorage?: (VnameCert.BizAccountLinkInfo.HostStorageType|null);
205
-
206
- /** BizAccountLinkInfo accountType */
207
- accountType?: (VnameCert.BizAccountLinkInfo.AccountType|null);
208
- }
209
-
210
- /** Represents a BizAccountLinkInfo. */
211
- class BizAccountLinkInfo implements IBizAccountLinkInfo {
212
-
213
- /**
214
- * Constructs a new BizAccountLinkInfo.
215
- * @param [properties] Properties to set
216
- */
217
- constructor(properties?: VnameCert.IBizAccountLinkInfo);
218
-
219
- /** BizAccountLinkInfo whatsappBizAcctFbid. */
220
- public whatsappBizAcctFbid?: (number|Long|null);
221
-
222
- /** BizAccountLinkInfo whatsappAcctNumber. */
223
- public whatsappAcctNumber?: (string|null);
224
-
225
- /** BizAccountLinkInfo issueTime. */
226
- public issueTime?: (number|Long|null);
227
-
228
- /** BizAccountLinkInfo hostStorage. */
229
- public hostStorage?: (VnameCert.BizAccountLinkInfo.HostStorageType|null);
230
-
231
- /** BizAccountLinkInfo accountType. */
232
- public accountType?: (VnameCert.BizAccountLinkInfo.AccountType|null);
233
-
234
- /** BizAccountLinkInfo _whatsappBizAcctFbid. */
235
- public _whatsappBizAcctFbid?: "whatsappBizAcctFbid";
236
-
237
- /** BizAccountLinkInfo _whatsappAcctNumber. */
238
- public _whatsappAcctNumber?: "whatsappAcctNumber";
239
-
240
- /** BizAccountLinkInfo _issueTime. */
241
- public _issueTime?: "issueTime";
242
-
243
- /** BizAccountLinkInfo _hostStorage. */
244
- public _hostStorage?: "hostStorage";
245
-
246
- /** BizAccountLinkInfo _accountType. */
247
- public _accountType?: "accountType";
248
-
249
- /**
250
- * Creates a new BizAccountLinkInfo instance using the specified properties.
251
- * @param [properties] Properties to set
252
- * @returns BizAccountLinkInfo instance
253
- */
254
- public static create(properties?: VnameCert.IBizAccountLinkInfo): VnameCert.BizAccountLinkInfo;
255
-
256
- /**
257
- * Encodes the specified BizAccountLinkInfo message. Does not implicitly {@link VnameCert.BizAccountLinkInfo.verify|verify} messages.
258
- * @param message BizAccountLinkInfo message or plain object to encode
259
- * @param [writer] Writer to encode to
260
- * @returns Writer
261
- */
262
- public static encode(message: VnameCert.IBizAccountLinkInfo, writer?: $protobuf.Writer): $protobuf.Writer;
263
-
264
- /**
265
- * Encodes the specified BizAccountLinkInfo message, length delimited. Does not implicitly {@link VnameCert.BizAccountLinkInfo.verify|verify} messages.
266
- * @param message BizAccountLinkInfo message or plain object to encode
267
- * @param [writer] Writer to encode to
268
- * @returns Writer
269
- */
270
- public static encodeDelimited(message: VnameCert.IBizAccountLinkInfo, writer?: $protobuf.Writer): $protobuf.Writer;
271
-
272
- /**
273
- * Decodes a BizAccountLinkInfo message from the specified reader or buffer.
274
- * @param reader Reader or buffer to decode from
275
- * @param [length] Message length if known beforehand
276
- * @returns BizAccountLinkInfo
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VnameCert.BizAccountLinkInfo;
281
-
282
- /**
283
- * Decodes a BizAccountLinkInfo message from the specified reader or buffer, length delimited.
284
- * @param reader Reader or buffer to decode from
285
- * @returns BizAccountLinkInfo
286
- * @throws {Error} If the payload is not a reader or valid buffer
287
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
288
- */
289
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VnameCert.BizAccountLinkInfo;
290
-
291
- /**
292
- * Verifies a BizAccountLinkInfo message.
293
- * @param message Plain object to verify
294
- * @returns `null` if valid, otherwise the reason why it is not
295
- */
296
- public static verify(message: { [k: string]: any }): (string|null);
297
-
298
- /**
299
- * Creates a BizAccountLinkInfo message from a plain object. Also converts values to their respective internal types.
300
- * @param object Plain object
301
- * @returns BizAccountLinkInfo
302
- */
303
- public static fromObject(object: { [k: string]: any }): VnameCert.BizAccountLinkInfo;
304
-
305
- /**
306
- * Creates a plain object from a BizAccountLinkInfo message. Also converts values to other types if specified.
307
- * @param message BizAccountLinkInfo
308
- * @param [options] Conversion options
309
- * @returns Plain object
310
- */
311
- public static toObject(message: VnameCert.BizAccountLinkInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
312
-
313
- /**
314
- * Converts this BizAccountLinkInfo to JSON.
315
- * @returns JSON object
316
- */
317
- public toJSON(): { [k: string]: any };
318
-
319
- /**
320
- * Gets the default type url for BizAccountLinkInfo
321
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
322
- * @returns The default type url
323
- */
324
- public static getTypeUrl(typeUrlPrefix?: string): string;
325
- }
326
-
327
- namespace BizAccountLinkInfo {
328
-
329
- /** AccountType enum. */
330
- enum AccountType {
331
- ENTERPRISE = 0
332
- }
333
-
334
- /** HostStorageType enum. */
335
- enum HostStorageType {
336
- ON_PREMISE = 0,
337
- FACEBOOK = 1
338
- }
339
- }
340
-
341
- /** Properties of a BizAccountPayload. */
342
- interface IBizAccountPayload {
343
-
344
- /** BizAccountPayload vnameCert */
345
- vnameCert?: (VnameCert.IVerifiedNameCertificate|null);
346
-
347
- /** BizAccountPayload bizAcctLinkInfo */
348
- bizAcctLinkInfo?: (Uint8Array|null);
349
- }
350
-
351
- /** Represents a BizAccountPayload. */
352
- class BizAccountPayload implements IBizAccountPayload {
353
-
354
- /**
355
- * Constructs a new BizAccountPayload.
356
- * @param [properties] Properties to set
357
- */
358
- constructor(properties?: VnameCert.IBizAccountPayload);
359
-
360
- /** BizAccountPayload vnameCert. */
361
- public vnameCert?: (VnameCert.IVerifiedNameCertificate|null);
362
-
363
- /** BizAccountPayload bizAcctLinkInfo. */
364
- public bizAcctLinkInfo?: (Uint8Array|null);
365
-
366
- /** BizAccountPayload _vnameCert. */
367
- public _vnameCert?: "vnameCert";
368
-
369
- /** BizAccountPayload _bizAcctLinkInfo. */
370
- public _bizAcctLinkInfo?: "bizAcctLinkInfo";
371
-
372
- /**
373
- * Creates a new BizAccountPayload instance using the specified properties.
374
- * @param [properties] Properties to set
375
- * @returns BizAccountPayload instance
376
- */
377
- public static create(properties?: VnameCert.IBizAccountPayload): VnameCert.BizAccountPayload;
378
-
379
- /**
380
- * Encodes the specified BizAccountPayload message. Does not implicitly {@link VnameCert.BizAccountPayload.verify|verify} messages.
381
- * @param message BizAccountPayload message or plain object to encode
382
- * @param [writer] Writer to encode to
383
- * @returns Writer
384
- */
385
- public static encode(message: VnameCert.IBizAccountPayload, writer?: $protobuf.Writer): $protobuf.Writer;
386
-
387
- /**
388
- * Encodes the specified BizAccountPayload message, length delimited. Does not implicitly {@link VnameCert.BizAccountPayload.verify|verify} messages.
389
- * @param message BizAccountPayload message or plain object to encode
390
- * @param [writer] Writer to encode to
391
- * @returns Writer
392
- */
393
- public static encodeDelimited(message: VnameCert.IBizAccountPayload, writer?: $protobuf.Writer): $protobuf.Writer;
394
-
395
- /**
396
- * Decodes a BizAccountPayload message from the specified reader or buffer.
397
- * @param reader Reader or buffer to decode from
398
- * @param [length] Message length if known beforehand
399
- * @returns BizAccountPayload
400
- * @throws {Error} If the payload is not a reader or valid buffer
401
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
402
- */
403
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VnameCert.BizAccountPayload;
404
-
405
- /**
406
- * Decodes a BizAccountPayload message from the specified reader or buffer, length delimited.
407
- * @param reader Reader or buffer to decode from
408
- * @returns BizAccountPayload
409
- * @throws {Error} If the payload is not a reader or valid buffer
410
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
411
- */
412
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VnameCert.BizAccountPayload;
413
-
414
- /**
415
- * Verifies a BizAccountPayload message.
416
- * @param message Plain object to verify
417
- * @returns `null` if valid, otherwise the reason why it is not
418
- */
419
- public static verify(message: { [k: string]: any }): (string|null);
420
-
421
- /**
422
- * Creates a BizAccountPayload message from a plain object. Also converts values to their respective internal types.
423
- * @param object Plain object
424
- * @returns BizAccountPayload
425
- */
426
- public static fromObject(object: { [k: string]: any }): VnameCert.BizAccountPayload;
427
-
428
- /**
429
- * Creates a plain object from a BizAccountPayload message. Also converts values to other types if specified.
430
- * @param message BizAccountPayload
431
- * @param [options] Conversion options
432
- * @returns Plain object
433
- */
434
- public static toObject(message: VnameCert.BizAccountPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
435
-
436
- /**
437
- * Converts this BizAccountPayload to JSON.
438
- * @returns JSON object
439
- */
440
- public toJSON(): { [k: string]: any };
441
-
442
- /**
443
- * Gets the default type url for BizAccountPayload
444
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
445
- * @returns The default type url
446
- */
447
- public static getTypeUrl(typeUrlPrefix?: string): string;
448
- }
449
-
450
- /** Properties of a VerifiedNameCertificate. */
451
- interface IVerifiedNameCertificate {
452
-
453
- /** VerifiedNameCertificate details */
454
- details?: (Uint8Array|null);
455
-
456
- /** VerifiedNameCertificate signature */
457
- signature?: (Uint8Array|null);
458
-
459
- /** VerifiedNameCertificate serverSignature */
460
- serverSignature?: (Uint8Array|null);
461
- }
462
-
463
- /** Represents a VerifiedNameCertificate. */
464
- class VerifiedNameCertificate implements IVerifiedNameCertificate {
465
-
466
- /**
467
- * Constructs a new VerifiedNameCertificate.
468
- * @param [properties] Properties to set
469
- */
470
- constructor(properties?: VnameCert.IVerifiedNameCertificate);
471
-
472
- /** VerifiedNameCertificate details. */
473
- public details?: (Uint8Array|null);
474
-
475
- /** VerifiedNameCertificate signature. */
476
- public signature?: (Uint8Array|null);
477
-
478
- /** VerifiedNameCertificate serverSignature. */
479
- public serverSignature?: (Uint8Array|null);
480
-
481
- /** VerifiedNameCertificate _details. */
482
- public _details?: "details";
483
-
484
- /** VerifiedNameCertificate _signature. */
485
- public _signature?: "signature";
486
-
487
- /** VerifiedNameCertificate _serverSignature. */
488
- public _serverSignature?: "serverSignature";
489
-
490
- /**
491
- * Creates a new VerifiedNameCertificate instance using the specified properties.
492
- * @param [properties] Properties to set
493
- * @returns VerifiedNameCertificate instance
494
- */
495
- public static create(properties?: VnameCert.IVerifiedNameCertificate): VnameCert.VerifiedNameCertificate;
496
-
497
- /**
498
- * Encodes the specified VerifiedNameCertificate message. Does not implicitly {@link VnameCert.VerifiedNameCertificate.verify|verify} messages.
499
- * @param message VerifiedNameCertificate message or plain object to encode
500
- * @param [writer] Writer to encode to
501
- * @returns Writer
502
- */
503
- public static encode(message: VnameCert.IVerifiedNameCertificate, writer?: $protobuf.Writer): $protobuf.Writer;
504
-
505
- /**
506
- * Encodes the specified VerifiedNameCertificate message, length delimited. Does not implicitly {@link VnameCert.VerifiedNameCertificate.verify|verify} messages.
507
- * @param message VerifiedNameCertificate message or plain object to encode
508
- * @param [writer] Writer to encode to
509
- * @returns Writer
510
- */
511
- public static encodeDelimited(message: VnameCert.IVerifiedNameCertificate, writer?: $protobuf.Writer): $protobuf.Writer;
512
-
513
- /**
514
- * Decodes a VerifiedNameCertificate message from the specified reader or buffer.
515
- * @param reader Reader or buffer to decode from
516
- * @param [length] Message length if known beforehand
517
- * @returns VerifiedNameCertificate
518
- * @throws {Error} If the payload is not a reader or valid buffer
519
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
520
- */
521
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VnameCert.VerifiedNameCertificate;
522
-
523
- /**
524
- * Decodes a VerifiedNameCertificate message from the specified reader or buffer, length delimited.
525
- * @param reader Reader or buffer to decode from
526
- * @returns VerifiedNameCertificate
527
- * @throws {Error} If the payload is not a reader or valid buffer
528
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
529
- */
530
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VnameCert.VerifiedNameCertificate;
531
-
532
- /**
533
- * Verifies a VerifiedNameCertificate message.
534
- * @param message Plain object to verify
535
- * @returns `null` if valid, otherwise the reason why it is not
536
- */
537
- public static verify(message: { [k: string]: any }): (string|null);
538
-
539
- /**
540
- * Creates a VerifiedNameCertificate message from a plain object. Also converts values to their respective internal types.
541
- * @param object Plain object
542
- * @returns VerifiedNameCertificate
543
- */
544
- public static fromObject(object: { [k: string]: any }): VnameCert.VerifiedNameCertificate;
545
-
546
- /**
547
- * Creates a plain object from a VerifiedNameCertificate message. Also converts values to other types if specified.
548
- * @param message VerifiedNameCertificate
549
- * @param [options] Conversion options
550
- * @returns Plain object
551
- */
552
- public static toObject(message: VnameCert.VerifiedNameCertificate, options?: $protobuf.IConversionOptions): { [k: string]: any };
553
-
554
- /**
555
- * Converts this VerifiedNameCertificate to JSON.
556
- * @returns JSON object
557
- */
558
- public toJSON(): { [k: string]: any };
559
-
560
- /**
561
- * Gets the default type url for VerifiedNameCertificate
562
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
563
- * @returns The default type url
564
- */
565
- public static getTypeUrl(typeUrlPrefix?: string): string;
566
- }
567
-
568
- namespace VerifiedNameCertificate {
569
-
570
- /** Properties of a Details. */
571
- interface IDetails {
572
-
573
- /** Details serial */
574
- serial?: (number|Long|null);
575
-
576
- /** Details issuer */
577
- issuer?: (string|null);
578
-
579
- /** Details verifiedName */
580
- verifiedName?: (string|null);
581
-
582
- /** Details localizedNames */
583
- localizedNames?: (VnameCert.ILocalizedName[]|null);
584
-
585
- /** Details issueTime */
586
- issueTime?: (number|Long|null);
587
- }
588
-
589
- /** Represents a Details. */
590
- class Details implements IDetails {
591
-
592
- /**
593
- * Constructs a new Details.
594
- * @param [properties] Properties to set
595
- */
596
- constructor(properties?: VnameCert.VerifiedNameCertificate.IDetails);
597
-
598
- /** Details serial. */
599
- public serial?: (number|Long|null);
600
-
601
- /** Details issuer. */
602
- public issuer?: (string|null);
603
-
604
- /** Details verifiedName. */
605
- public verifiedName?: (string|null);
606
-
607
- /** Details localizedNames. */
608
- public localizedNames: VnameCert.ILocalizedName[];
609
-
610
- /** Details issueTime. */
611
- public issueTime?: (number|Long|null);
612
-
613
- /** Details _serial. */
614
- public _serial?: "serial";
615
-
616
- /** Details _issuer. */
617
- public _issuer?: "issuer";
618
-
619
- /** Details _verifiedName. */
620
- public _verifiedName?: "verifiedName";
621
-
622
- /** Details _issueTime. */
623
- public _issueTime?: "issueTime";
624
-
625
- /**
626
- * Creates a new Details instance using the specified properties.
627
- * @param [properties] Properties to set
628
- * @returns Details instance
629
- */
630
- public static create(properties?: VnameCert.VerifiedNameCertificate.IDetails): VnameCert.VerifiedNameCertificate.Details;
631
-
632
- /**
633
- * Encodes the specified Details message. Does not implicitly {@link VnameCert.VerifiedNameCertificate.Details.verify|verify} messages.
634
- * @param message Details message or plain object to encode
635
- * @param [writer] Writer to encode to
636
- * @returns Writer
637
- */
638
- public static encode(message: VnameCert.VerifiedNameCertificate.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
639
-
640
- /**
641
- * Encodes the specified Details message, length delimited. Does not implicitly {@link VnameCert.VerifiedNameCertificate.Details.verify|verify} messages.
642
- * @param message Details message or plain object to encode
643
- * @param [writer] Writer to encode to
644
- * @returns Writer
645
- */
646
- public static encodeDelimited(message: VnameCert.VerifiedNameCertificate.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
647
-
648
- /**
649
- * Decodes a Details message from the specified reader or buffer.
650
- * @param reader Reader or buffer to decode from
651
- * @param [length] Message length if known beforehand
652
- * @returns Details
653
- * @throws {Error} If the payload is not a reader or valid buffer
654
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
655
- */
656
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VnameCert.VerifiedNameCertificate.Details;
657
-
658
- /**
659
- * Decodes a Details message from the specified reader or buffer, length delimited.
660
- * @param reader Reader or buffer to decode from
661
- * @returns Details
662
- * @throws {Error} If the payload is not a reader or valid buffer
663
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
664
- */
665
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VnameCert.VerifiedNameCertificate.Details;
666
-
667
- /**
668
- * Verifies a Details message.
669
- * @param message Plain object to verify
670
- * @returns `null` if valid, otherwise the reason why it is not
671
- */
672
- public static verify(message: { [k: string]: any }): (string|null);
673
-
674
- /**
675
- * Creates a Details message from a plain object. Also converts values to their respective internal types.
676
- * @param object Plain object
677
- * @returns Details
678
- */
679
- public static fromObject(object: { [k: string]: any }): VnameCert.VerifiedNameCertificate.Details;
680
-
681
- /**
682
- * Creates a plain object from a Details message. Also converts values to other types if specified.
683
- * @param message Details
684
- * @param [options] Conversion options
685
- * @returns Plain object
686
- */
687
- public static toObject(message: VnameCert.VerifiedNameCertificate.Details, options?: $protobuf.IConversionOptions): { [k: string]: any };
688
-
689
- /**
690
- * Converts this Details to JSON.
691
- * @returns JSON object
692
- */
693
- public toJSON(): { [k: string]: any };
694
-
695
- /**
696
- * Gets the default type url for Details
697
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
698
- * @returns The default type url
699
- */
700
- public static getTypeUrl(typeUrlPrefix?: string): string;
701
- }
702
- }
703
-
704
- /** Properties of a LocalizedName. */
705
- interface ILocalizedName {
706
-
707
- /** LocalizedName lg */
708
- lg?: (string|null);
709
-
710
- /** LocalizedName lc */
711
- lc?: (string|null);
712
-
713
- /** LocalizedName verifiedName */
714
- verifiedName?: (string|null);
715
- }
716
-
717
- /** Represents a LocalizedName. */
718
- class LocalizedName implements ILocalizedName {
719
-
720
- /**
721
- * Constructs a new LocalizedName.
722
- * @param [properties] Properties to set
723
- */
724
- constructor(properties?: VnameCert.ILocalizedName);
725
-
726
- /** LocalizedName lg. */
727
- public lg?: (string|null);
728
-
729
- /** LocalizedName lc. */
730
- public lc?: (string|null);
731
-
732
- /** LocalizedName verifiedName. */
733
- public verifiedName?: (string|null);
734
-
735
- /** LocalizedName _lg. */
736
- public _lg?: "lg";
737
-
738
- /** LocalizedName _lc. */
739
- public _lc?: "lc";
740
-
741
- /** LocalizedName _verifiedName. */
742
- public _verifiedName?: "verifiedName";
743
-
744
- /**
745
- * Creates a new LocalizedName instance using the specified properties.
746
- * @param [properties] Properties to set
747
- * @returns LocalizedName instance
748
- */
749
- public static create(properties?: VnameCert.ILocalizedName): VnameCert.LocalizedName;
750
-
751
- /**
752
- * Encodes the specified LocalizedName message. Does not implicitly {@link VnameCert.LocalizedName.verify|verify} messages.
753
- * @param message LocalizedName message or plain object to encode
754
- * @param [writer] Writer to encode to
755
- * @returns Writer
756
- */
757
- public static encode(message: VnameCert.ILocalizedName, writer?: $protobuf.Writer): $protobuf.Writer;
758
-
759
- /**
760
- * Encodes the specified LocalizedName message, length delimited. Does not implicitly {@link VnameCert.LocalizedName.verify|verify} messages.
761
- * @param message LocalizedName message or plain object to encode
762
- * @param [writer] Writer to encode to
763
- * @returns Writer
764
- */
765
- public static encodeDelimited(message: VnameCert.ILocalizedName, writer?: $protobuf.Writer): $protobuf.Writer;
766
-
767
- /**
768
- * Decodes a LocalizedName message from the specified reader or buffer.
769
- * @param reader Reader or buffer to decode from
770
- * @param [length] Message length if known beforehand
771
- * @returns LocalizedName
772
- * @throws {Error} If the payload is not a reader or valid buffer
773
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
774
- */
775
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VnameCert.LocalizedName;
776
-
777
- /**
778
- * Decodes a LocalizedName message from the specified reader or buffer, length delimited.
779
- * @param reader Reader or buffer to decode from
780
- * @returns LocalizedName
781
- * @throws {Error} If the payload is not a reader or valid buffer
782
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
783
- */
784
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VnameCert.LocalizedName;
785
-
786
- /**
787
- * Verifies a LocalizedName message.
788
- * @param message Plain object to verify
789
- * @returns `null` if valid, otherwise the reason why it is not
790
- */
791
- public static verify(message: { [k: string]: any }): (string|null);
792
-
793
- /**
794
- * Creates a LocalizedName message from a plain object. Also converts values to their respective internal types.
795
- * @param object Plain object
796
- * @returns LocalizedName
797
- */
798
- public static fromObject(object: { [k: string]: any }): VnameCert.LocalizedName;
799
-
800
- /**
801
- * Creates a plain object from a LocalizedName message. Also converts values to other types if specified.
802
- * @param message LocalizedName
803
- * @param [options] Conversion options
804
- * @returns Plain object
805
- */
806
- public static toObject(message: VnameCert.LocalizedName, options?: $protobuf.IConversionOptions): { [k: string]: any };
807
-
808
- /**
809
- * Converts this LocalizedName to JSON.
810
- * @returns JSON object
811
- */
812
- public toJSON(): { [k: string]: any };
813
-
814
- /**
815
- * Gets the default type url for LocalizedName
816
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
817
- * @returns The default type url
818
- */
819
- public static getTypeUrl(typeUrlPrefix?: string): string;
820
- }
821
- }