@hansaka02/baileys 7.3.2 → 7.3.4

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 (202) hide show
  1. package/README.md +247 -203
  2. package/lib/Defaults/connection.js +51 -0
  3. package/lib/Defaults/constants.js +62 -0
  4. package/lib/Defaults/history.js +17 -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 +4 -4
  13. package/lib/Signal/Group/sender-key-distribution-message.js +5 -5
  14. package/lib/Signal/Group/sender-key-message.js +12 -8
  15. package/lib/Signal/Group/sender-key-record.js +7 -7
  16. package/lib/Signal/Group/sender-key-state.js +4 -4
  17. package/lib/Signal/Group/sender-message-key.js +2 -2
  18. package/lib/Signal/libsignal.js +45 -69
  19. package/lib/Signal/lid-mapping.js +15 -11
  20. package/lib/Socket/Client/types.js +2 -2
  21. package/lib/Socket/Client/websocket.js +16 -14
  22. package/lib/Socket/business.js +41 -32
  23. package/lib/Socket/chats.js +123 -98
  24. package/lib/Socket/community.js +50 -40
  25. package/lib/Socket/groups.js +59 -47
  26. package/lib/Socket/index.js +4 -4
  27. package/lib/Socket/messages-recv.js +219 -172
  28. package/lib/Socket/messages-send.js +187 -143
  29. package/lib/Socket/newsletter.js +61 -47
  30. package/lib/Socket/socket.js +133 -90
  31. package/lib/Socket/usync.js +6 -6
  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/State.js +4 -4
  39. package/lib/Types/index.js +28 -12
  40. package/lib/Utils/auth-utils.js +28 -26
  41. package/lib/Utils/baileys-event-stream.js +68 -69
  42. package/lib/Utils/business.js +63 -53
  43. package/lib/Utils/chat-utils.js +81 -71
  44. package/lib/Utils/crypto.js +25 -45
  45. package/lib/Utils/decode-wa-message.js +319 -311
  46. package/lib/Utils/event-buffer.js +21 -22
  47. package/lib/Utils/generics.js +65 -82
  48. package/lib/Utils/history.js +21 -21
  49. package/lib/Utils/index.js +27 -13
  50. package/lib/Utils/link-preview.js +7 -30
  51. package/lib/Utils/logger.js +5 -5
  52. package/lib/Utils/lt-hash.js +3 -3
  53. package/lib/Utils/message-retry-manager.js +4 -4
  54. package/lib/Utils/messages-media.js +104 -109
  55. package/lib/Utils/messages.js +203 -171
  56. package/lib/Utils/noise-handler.js +28 -19
  57. package/lib/Utils/process-message.js +111 -96
  58. package/lib/Utils/signal.js +36 -25
  59. package/lib/Utils/use-multi-file-auth-state.js +18 -22
  60. package/lib/Utils/validate-connection.js +52 -45
  61. package/lib/WABinary/decode.js +6 -32
  62. package/lib/WABinary/encode.js +3 -29
  63. package/lib/WABinary/generic-utils.js +4 -4
  64. package/lib/WABinary/index.js +27 -11
  65. package/lib/WAM/encode.js +16 -8
  66. package/lib/WAM/index.js +27 -11
  67. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
  68. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  69. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
  70. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
  71. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
  72. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
  73. package/lib/WAUSync/Protocols/index.js +27 -11
  74. package/lib/WAUSync/USyncQuery.js +17 -10
  75. package/lib/WAUSync/index.js +27 -11
  76. package/lib/index.js +60 -31
  77. package/package.json +8 -14
  78. package/WAProto/AICommon/AICommon.d.ts +0 -11702
  79. package/WAProto/Adv/Adv.d.ts +0 -643
  80. package/WAProto/BotMetadata/BotMetadata.d.ts +0 -5654
  81. package/WAProto/Cert/Cert.d.ts +0 -613
  82. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +0 -476
  83. package/WAProto/CompanionReg/CompanionReg.d.ts +0 -1361
  84. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +0 -577
  85. package/WAProto/E2E/E2E.d.ts +0 -41724
  86. package/WAProto/Ephemeral/Ephemeral.d.ts +0 -114
  87. package/WAProto/HistorySync/HistorySync.d.ts +0 -51700
  88. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +0 -229
  89. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +0 -583
  90. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +0 -42897
  91. package/WAProto/MmsRetry/MmsRetry.d.ts +0 -243
  92. package/WAProto/Protocol/Protocol.d.ts +0 -270
  93. package/WAProto/Reporting/Reporting.d.ts +0 -371
  94. package/WAProto/ServerSync/ServerSync.d.ts +0 -1285
  95. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +0 -1868
  96. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +0 -767
  97. package/WAProto/StatusAttributions/StatusAttributions.d.ts +0 -1027
  98. package/WAProto/SyncAction/SyncAction.d.ts +0 -11193
  99. package/WAProto/UserPassword/UserPassword.d.ts +0 -363
  100. package/WAProto/VnameCert/VnameCert.d.ts +0 -821
  101. package/WAProto/Wa6/Wa6.d.ts +0 -2128
  102. package/WAProto/Web/Web.d.ts +0 -46383
  103. package/WAProto/index.d.ts +0 -55
  104. package/lib/Defaults/index.d.ts +0 -77
  105. package/lib/Signal/Group/ciphertext-message.d.ts +0 -9
  106. package/lib/Signal/Group/group-session-builder.d.ts +0 -17
  107. package/lib/Signal/Group/group_cipher.d.ts +0 -19
  108. package/lib/Signal/Group/index.d.ts +0 -11
  109. package/lib/Signal/Group/keyhelper.d.ts +0 -16
  110. package/lib/Signal/Group/sender-chain-key.d.ts +0 -14
  111. package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -17
  112. package/lib/Signal/Group/sender-key-message.d.ts +0 -19
  113. package/lib/Signal/Group/sender-key-name.d.ts +0 -19
  114. package/lib/Signal/Group/sender-key-record.d.ts +0 -32
  115. package/lib/Signal/Group/sender-key-state.d.ts +0 -44
  116. package/lib/Signal/Group/sender-message-key.d.ts +0 -11
  117. package/lib/Signal/libsignal.d.ts +0 -8
  118. package/lib/Signal/lid-mapping.d.ts +0 -28
  119. package/lib/Socket/Client/index.d.ts +0 -2
  120. package/lib/Socket/Client/types.d.ts +0 -16
  121. package/lib/Socket/Client/websocket.d.ts +0 -13
  122. package/lib/Socket/business.d.ts +0 -187
  123. package/lib/Socket/chats.d.ts +0 -97
  124. package/lib/Socket/community.d.ts +0 -129
  125. package/lib/Socket/groups.d.ts +0 -129
  126. package/lib/Socket/index.d.ts +0 -191
  127. package/lib/Socket/messages-recv.d.ts +0 -174
  128. package/lib/Socket/messages-send.d.ts +0 -165
  129. package/lib/Socket/newsletter.d.ts +0 -145
  130. package/lib/Socket/socket.d.ts +0 -45
  131. package/lib/Socket/usync.d.ts +0 -37
  132. package/lib/Store/index.d.ts +0 -4
  133. package/lib/Store/make-cache-manager-store.d.ts +0 -14
  134. package/lib/Store/make-in-memory-store.d.ts +0 -123
  135. package/lib/Store/make-ordered-dictionary.d.ts +0 -12
  136. package/lib/Store/object-repository.d.ts +0 -10
  137. package/lib/Types/Auth.d.ts +0 -121
  138. package/lib/Types/Bussiness.d.ts +0 -28
  139. package/lib/Types/Call.d.ts +0 -14
  140. package/lib/Types/Chat.d.ts +0 -143
  141. package/lib/Types/Contact.d.ts +0 -23
  142. package/lib/Types/Events.d.ts +0 -226
  143. package/lib/Types/GroupMetadata.d.ts +0 -66
  144. package/lib/Types/Label.d.ts +0 -48
  145. package/lib/Types/LabelAssociation.d.ts +0 -35
  146. package/lib/Types/Message.d.ts +0 -484
  147. package/lib/Types/MexUpdates.d.ts +0 -9
  148. package/lib/Types/Newsletter.d.ts +0 -109
  149. package/lib/Types/Product.d.ts +0 -92
  150. package/lib/Types/Signal.d.ts +0 -98
  151. package/lib/Types/Socket.d.ts +0 -141
  152. package/lib/Types/State.d.ts +0 -41
  153. package/lib/Types/USync.d.ts +0 -26
  154. package/lib/Types/index.d.ts +0 -80
  155. package/lib/Utils/auth-utils.d.ts +0 -21
  156. package/lib/Utils/baileys-event-stream.d.ts +0 -18
  157. package/lib/Utils/business.d.ts +0 -29
  158. package/lib/Utils/chat-utils.d.ts +0 -82
  159. package/lib/Utils/crypto.d.ts +0 -56
  160. package/lib/Utils/decode-wa-message.d.ts +0 -53
  161. package/lib/Utils/event-buffer.d.ts +0 -39
  162. package/lib/Utils/generics.d.ts +0 -117
  163. package/lib/Utils/history.d.ts +0 -23
  164. package/lib/Utils/index.d.ts +0 -20
  165. package/lib/Utils/link-preview.d.ts +0 -23
  166. package/lib/Utils/logger.d.ts +0 -13
  167. package/lib/Utils/lt-hash.d.ts +0 -14
  168. package/lib/Utils/make-mutex.d.ts +0 -9
  169. package/lib/Utils/message-retry-manager.d.ts +0 -88
  170. package/lib/Utils/messages-media.d.ts +0 -135
  171. package/lib/Utils/messages.d.ts +0 -105
  172. package/lib/Utils/noise-handler.d.ts +0 -20
  173. package/lib/Utils/process-message.d.ts +0 -49
  174. package/lib/Utils/signal.d.ts +0 -42
  175. package/lib/Utils/use-mongo-file-auth-state.d.ts +0 -6
  176. package/lib/Utils/use-mongo-file-auth-state.js +0 -84
  177. package/lib/Utils/use-multi-file-auth-state.d.ts +0 -13
  178. package/lib/Utils/use-single-file-auth-state.d.ts +0 -13
  179. package/lib/Utils/use-single-file-auth-state.js +0 -80
  180. package/lib/Utils/validate-connection.d.ts +0 -13
  181. package/lib/WABinary/constants.d.ts +0 -30
  182. package/lib/WABinary/decode.d.ts +0 -9
  183. package/lib/WABinary/encode.d.ts +0 -3
  184. package/lib/WABinary/generic-utils.d.ts +0 -28
  185. package/lib/WABinary/index.d.ts +0 -5
  186. package/lib/WABinary/jid-utils.d.ts +0 -58
  187. package/lib/WABinary/types.d.ts +0 -22
  188. package/lib/WAM/BinaryInfo.d.ts +0 -16
  189. package/lib/WAM/constants.d.ts +0 -47
  190. package/lib/WAM/encode.d.ts +0 -3
  191. package/lib/WAM/index.d.ts +0 -3
  192. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +0 -28
  193. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +0 -10
  194. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +0 -26
  195. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +0 -14
  196. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +0 -10
  197. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +0 -14
  198. package/lib/WAUSync/Protocols/index.d.ts +0 -6
  199. package/lib/WAUSync/USyncQuery.d.ts +0 -31
  200. package/lib/WAUSync/USyncUser.d.ts +0 -12
  201. package/lib/WAUSync/index.d.ts +0 -3
  202. package/lib/index.d.ts +0 -13
@@ -1,363 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace UserPassword. */
4
- export namespace UserPassword {
5
-
6
- /** Properties of a UserPassword. */
7
- interface IUserPassword {
8
-
9
- /** UserPassword encoding */
10
- encoding?: (UserPassword.UserPassword.Encoding|null);
11
-
12
- /** UserPassword transformer */
13
- transformer?: (UserPassword.UserPassword.Transformer|null);
14
-
15
- /** UserPassword transformerArg */
16
- transformerArg?: (UserPassword.UserPassword.ITransformerArg[]|null);
17
-
18
- /** UserPassword transformedData */
19
- transformedData?: (Uint8Array|null);
20
- }
21
-
22
- /** Represents a UserPassword. */
23
- class UserPassword implements IUserPassword {
24
-
25
- /**
26
- * Constructs a new UserPassword.
27
- * @param [properties] Properties to set
28
- */
29
- constructor(properties?: UserPassword.IUserPassword);
30
-
31
- /** UserPassword encoding. */
32
- public encoding?: (UserPassword.UserPassword.Encoding|null);
33
-
34
- /** UserPassword transformer. */
35
- public transformer?: (UserPassword.UserPassword.Transformer|null);
36
-
37
- /** UserPassword transformerArg. */
38
- public transformerArg: UserPassword.UserPassword.ITransformerArg[];
39
-
40
- /** UserPassword transformedData. */
41
- public transformedData?: (Uint8Array|null);
42
-
43
- /** UserPassword _encoding. */
44
- public _encoding?: "encoding";
45
-
46
- /** UserPassword _transformer. */
47
- public _transformer?: "transformer";
48
-
49
- /** UserPassword _transformedData. */
50
- public _transformedData?: "transformedData";
51
-
52
- /**
53
- * Creates a new UserPassword instance using the specified properties.
54
- * @param [properties] Properties to set
55
- * @returns UserPassword instance
56
- */
57
- public static create(properties?: UserPassword.IUserPassword): UserPassword.UserPassword;
58
-
59
- /**
60
- * Encodes the specified UserPassword message. Does not implicitly {@link UserPassword.UserPassword.verify|verify} messages.
61
- * @param message UserPassword message or plain object to encode
62
- * @param [writer] Writer to encode to
63
- * @returns Writer
64
- */
65
- public static encode(message: UserPassword.IUserPassword, writer?: $protobuf.Writer): $protobuf.Writer;
66
-
67
- /**
68
- * Encodes the specified UserPassword message, length delimited. Does not implicitly {@link UserPassword.UserPassword.verify|verify} messages.
69
- * @param message UserPassword message or plain object to encode
70
- * @param [writer] Writer to encode to
71
- * @returns Writer
72
- */
73
- public static encodeDelimited(message: UserPassword.IUserPassword, writer?: $protobuf.Writer): $protobuf.Writer;
74
-
75
- /**
76
- * Decodes a UserPassword message from the specified reader or buffer.
77
- * @param reader Reader or buffer to decode from
78
- * @param [length] Message length if known beforehand
79
- * @returns UserPassword
80
- * @throws {Error} If the payload is not a reader or valid buffer
81
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
82
- */
83
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPassword.UserPassword;
84
-
85
- /**
86
- * Decodes a UserPassword message from the specified reader or buffer, length delimited.
87
- * @param reader Reader or buffer to decode from
88
- * @returns UserPassword
89
- * @throws {Error} If the payload is not a reader or valid buffer
90
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
91
- */
92
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPassword.UserPassword;
93
-
94
- /**
95
- * Verifies a UserPassword message.
96
- * @param message Plain object to verify
97
- * @returns `null` if valid, otherwise the reason why it is not
98
- */
99
- public static verify(message: { [k: string]: any }): (string|null);
100
-
101
- /**
102
- * Creates a UserPassword message from a plain object. Also converts values to their respective internal types.
103
- * @param object Plain object
104
- * @returns UserPassword
105
- */
106
- public static fromObject(object: { [k: string]: any }): UserPassword.UserPassword;
107
-
108
- /**
109
- * Creates a plain object from a UserPassword message. Also converts values to other types if specified.
110
- * @param message UserPassword
111
- * @param [options] Conversion options
112
- * @returns Plain object
113
- */
114
- public static toObject(message: UserPassword.UserPassword, options?: $protobuf.IConversionOptions): { [k: string]: any };
115
-
116
- /**
117
- * Converts this UserPassword to JSON.
118
- * @returns JSON object
119
- */
120
- public toJSON(): { [k: string]: any };
121
-
122
- /**
123
- * Gets the default type url for UserPassword
124
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
125
- * @returns The default type url
126
- */
127
- public static getTypeUrl(typeUrlPrefix?: string): string;
128
- }
129
-
130
- namespace UserPassword {
131
-
132
- /** Encoding enum. */
133
- enum Encoding {
134
- UTF8 = 0,
135
- UTF8_BROKEN = 1
136
- }
137
-
138
- /** Transformer enum. */
139
- enum Transformer {
140
- NONE = 0,
141
- PBKDF2_HMAC_SHA512 = 1,
142
- PBKDF2_HMAC_SHA384 = 2
143
- }
144
-
145
- /** Properties of a TransformerArg. */
146
- interface ITransformerArg {
147
-
148
- /** TransformerArg key */
149
- key?: (string|null);
150
-
151
- /** TransformerArg value */
152
- value?: (UserPassword.UserPassword.TransformerArg.IValue|null);
153
- }
154
-
155
- /** Represents a TransformerArg. */
156
- class TransformerArg implements ITransformerArg {
157
-
158
- /**
159
- * Constructs a new TransformerArg.
160
- * @param [properties] Properties to set
161
- */
162
- constructor(properties?: UserPassword.UserPassword.ITransformerArg);
163
-
164
- /** TransformerArg key. */
165
- public key?: (string|null);
166
-
167
- /** TransformerArg value. */
168
- public value?: (UserPassword.UserPassword.TransformerArg.IValue|null);
169
-
170
- /** TransformerArg _key. */
171
- public _key?: "key";
172
-
173
- /** TransformerArg _value. */
174
- public _value?: "value";
175
-
176
- /**
177
- * Creates a new TransformerArg instance using the specified properties.
178
- * @param [properties] Properties to set
179
- * @returns TransformerArg instance
180
- */
181
- public static create(properties?: UserPassword.UserPassword.ITransformerArg): UserPassword.UserPassword.TransformerArg;
182
-
183
- /**
184
- * Encodes the specified TransformerArg message. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.verify|verify} messages.
185
- * @param message TransformerArg message or plain object to encode
186
- * @param [writer] Writer to encode to
187
- * @returns Writer
188
- */
189
- public static encode(message: UserPassword.UserPassword.ITransformerArg, writer?: $protobuf.Writer): $protobuf.Writer;
190
-
191
- /**
192
- * Encodes the specified TransformerArg message, length delimited. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.verify|verify} messages.
193
- * @param message TransformerArg message or plain object to encode
194
- * @param [writer] Writer to encode to
195
- * @returns Writer
196
- */
197
- public static encodeDelimited(message: UserPassword.UserPassword.ITransformerArg, writer?: $protobuf.Writer): $protobuf.Writer;
198
-
199
- /**
200
- * Decodes a TransformerArg message from the specified reader or buffer.
201
- * @param reader Reader or buffer to decode from
202
- * @param [length] Message length if known beforehand
203
- * @returns TransformerArg
204
- * @throws {Error} If the payload is not a reader or valid buffer
205
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
206
- */
207
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPassword.UserPassword.TransformerArg;
208
-
209
- /**
210
- * Decodes a TransformerArg message from the specified reader or buffer, length delimited.
211
- * @param reader Reader or buffer to decode from
212
- * @returns TransformerArg
213
- * @throws {Error} If the payload is not a reader or valid buffer
214
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
215
- */
216
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPassword.UserPassword.TransformerArg;
217
-
218
- /**
219
- * Verifies a TransformerArg message.
220
- * @param message Plain object to verify
221
- * @returns `null` if valid, otherwise the reason why it is not
222
- */
223
- public static verify(message: { [k: string]: any }): (string|null);
224
-
225
- /**
226
- * Creates a TransformerArg message from a plain object. Also converts values to their respective internal types.
227
- * @param object Plain object
228
- * @returns TransformerArg
229
- */
230
- public static fromObject(object: { [k: string]: any }): UserPassword.UserPassword.TransformerArg;
231
-
232
- /**
233
- * Creates a plain object from a TransformerArg message. Also converts values to other types if specified.
234
- * @param message TransformerArg
235
- * @param [options] Conversion options
236
- * @returns Plain object
237
- */
238
- public static toObject(message: UserPassword.UserPassword.TransformerArg, options?: $protobuf.IConversionOptions): { [k: string]: any };
239
-
240
- /**
241
- * Converts this TransformerArg to JSON.
242
- * @returns JSON object
243
- */
244
- public toJSON(): { [k: string]: any };
245
-
246
- /**
247
- * Gets the default type url for TransformerArg
248
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
249
- * @returns The default type url
250
- */
251
- public static getTypeUrl(typeUrlPrefix?: string): string;
252
- }
253
-
254
- namespace TransformerArg {
255
-
256
- /** Properties of a Value. */
257
- interface IValue {
258
-
259
- /** Value asBlob */
260
- asBlob?: (Uint8Array|null);
261
-
262
- /** Value asUnsignedInteger */
263
- asUnsignedInteger?: (number|null);
264
- }
265
-
266
- /** Represents a Value. */
267
- class Value implements IValue {
268
-
269
- /**
270
- * Constructs a new Value.
271
- * @param [properties] Properties to set
272
- */
273
- constructor(properties?: UserPassword.UserPassword.TransformerArg.IValue);
274
-
275
- /** Value asBlob. */
276
- public asBlob?: (Uint8Array|null);
277
-
278
- /** Value asUnsignedInteger. */
279
- public asUnsignedInteger?: (number|null);
280
-
281
- /** Value value. */
282
- public value?: ("asBlob"|"asUnsignedInteger");
283
-
284
- /**
285
- * Creates a new Value instance using the specified properties.
286
- * @param [properties] Properties to set
287
- * @returns Value instance
288
- */
289
- public static create(properties?: UserPassword.UserPassword.TransformerArg.IValue): UserPassword.UserPassword.TransformerArg.Value;
290
-
291
- /**
292
- * Encodes the specified Value message. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.Value.verify|verify} messages.
293
- * @param message Value message or plain object to encode
294
- * @param [writer] Writer to encode to
295
- * @returns Writer
296
- */
297
- public static encode(message: UserPassword.UserPassword.TransformerArg.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
298
-
299
- /**
300
- * Encodes the specified Value message, length delimited. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.Value.verify|verify} messages.
301
- * @param message Value message or plain object to encode
302
- * @param [writer] Writer to encode to
303
- * @returns Writer
304
- */
305
- public static encodeDelimited(message: UserPassword.UserPassword.TransformerArg.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
306
-
307
- /**
308
- * Decodes a Value message from the specified reader or buffer.
309
- * @param reader Reader or buffer to decode from
310
- * @param [length] Message length if known beforehand
311
- * @returns Value
312
- * @throws {Error} If the payload is not a reader or valid buffer
313
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
314
- */
315
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPassword.UserPassword.TransformerArg.Value;
316
-
317
- /**
318
- * Decodes a Value message from the specified reader or buffer, length delimited.
319
- * @param reader Reader or buffer to decode from
320
- * @returns Value
321
- * @throws {Error} If the payload is not a reader or valid buffer
322
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
323
- */
324
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPassword.UserPassword.TransformerArg.Value;
325
-
326
- /**
327
- * Verifies a Value message.
328
- * @param message Plain object to verify
329
- * @returns `null` if valid, otherwise the reason why it is not
330
- */
331
- public static verify(message: { [k: string]: any }): (string|null);
332
-
333
- /**
334
- * Creates a Value message from a plain object. Also converts values to their respective internal types.
335
- * @param object Plain object
336
- * @returns Value
337
- */
338
- public static fromObject(object: { [k: string]: any }): UserPassword.UserPassword.TransformerArg.Value;
339
-
340
- /**
341
- * Creates a plain object from a Value message. Also converts values to other types if specified.
342
- * @param message Value
343
- * @param [options] Conversion options
344
- * @returns Plain object
345
- */
346
- public static toObject(message: UserPassword.UserPassword.TransformerArg.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
347
-
348
- /**
349
- * Converts this Value to JSON.
350
- * @returns JSON object
351
- */
352
- public toJSON(): { [k: string]: any };
353
-
354
- /**
355
- * Gets the default type url for Value
356
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
357
- * @returns The default type url
358
- */
359
- public static getTypeUrl(typeUrlPrefix?: string): string;
360
- }
361
- }
362
- }
363
- }