@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,476 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace ChatLockSettings. */
4
- export namespace ChatLockSettings {
5
-
6
- /** Properties of a ChatLockSettings. */
7
- interface IChatLockSettings {
8
-
9
- /** ChatLockSettings hideLockedChats */
10
- hideLockedChats?: (boolean|null);
11
-
12
- /** ChatLockSettings secretCode */
13
- secretCode?: (UserPassword.IUserPassword|null);
14
- }
15
-
16
- /** Represents a ChatLockSettings. */
17
- class ChatLockSettings implements IChatLockSettings {
18
-
19
- /**
20
- * Constructs a new ChatLockSettings.
21
- * @param [properties] Properties to set
22
- */
23
- constructor(properties?: ChatLockSettings.IChatLockSettings);
24
-
25
- /** ChatLockSettings hideLockedChats. */
26
- public hideLockedChats?: (boolean|null);
27
-
28
- /** ChatLockSettings secretCode. */
29
- public secretCode?: (UserPassword.IUserPassword|null);
30
-
31
- /** ChatLockSettings _hideLockedChats. */
32
- public _hideLockedChats?: "hideLockedChats";
33
-
34
- /** ChatLockSettings _secretCode. */
35
- public _secretCode?: "secretCode";
36
-
37
- /**
38
- * Creates a new ChatLockSettings instance using the specified properties.
39
- * @param [properties] Properties to set
40
- * @returns ChatLockSettings instance
41
- */
42
- public static create(properties?: ChatLockSettings.IChatLockSettings): ChatLockSettings.ChatLockSettings;
43
-
44
- /**
45
- * Encodes the specified ChatLockSettings message. Does not implicitly {@link ChatLockSettings.ChatLockSettings.verify|verify} messages.
46
- * @param message ChatLockSettings message or plain object to encode
47
- * @param [writer] Writer to encode to
48
- * @returns Writer
49
- */
50
- public static encode(message: ChatLockSettings.IChatLockSettings, writer?: $protobuf.Writer): $protobuf.Writer;
51
-
52
- /**
53
- * Encodes the specified ChatLockSettings message, length delimited. Does not implicitly {@link ChatLockSettings.ChatLockSettings.verify|verify} messages.
54
- * @param message ChatLockSettings message or plain object to encode
55
- * @param [writer] Writer to encode to
56
- * @returns Writer
57
- */
58
- public static encodeDelimited(message: ChatLockSettings.IChatLockSettings, writer?: $protobuf.Writer): $protobuf.Writer;
59
-
60
- /**
61
- * Decodes a ChatLockSettings message from the specified reader or buffer.
62
- * @param reader Reader or buffer to decode from
63
- * @param [length] Message length if known beforehand
64
- * @returns ChatLockSettings
65
- * @throws {Error} If the payload is not a reader or valid buffer
66
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
67
- */
68
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ChatLockSettings.ChatLockSettings;
69
-
70
- /**
71
- * Decodes a ChatLockSettings message from the specified reader or buffer, length delimited.
72
- * @param reader Reader or buffer to decode from
73
- * @returns ChatLockSettings
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)): ChatLockSettings.ChatLockSettings;
78
-
79
- /**
80
- * Verifies a ChatLockSettings message.
81
- * @param message Plain object to verify
82
- * @returns `null` if valid, otherwise the reason why it is not
83
- */
84
- public static verify(message: { [k: string]: any }): (string|null);
85
-
86
- /**
87
- * Creates a ChatLockSettings message from a plain object. Also converts values to their respective internal types.
88
- * @param object Plain object
89
- * @returns ChatLockSettings
90
- */
91
- public static fromObject(object: { [k: string]: any }): ChatLockSettings.ChatLockSettings;
92
-
93
- /**
94
- * Creates a plain object from a ChatLockSettings message. Also converts values to other types if specified.
95
- * @param message ChatLockSettings
96
- * @param [options] Conversion options
97
- * @returns Plain object
98
- */
99
- public static toObject(message: ChatLockSettings.ChatLockSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
100
-
101
- /**
102
- * Converts this ChatLockSettings to JSON.
103
- * @returns JSON object
104
- */
105
- public toJSON(): { [k: string]: any };
106
-
107
- /**
108
- * Gets the default type url for ChatLockSettings
109
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
110
- * @returns The default type url
111
- */
112
- public static getTypeUrl(typeUrlPrefix?: string): string;
113
- }
114
- }
115
-
116
- /** Namespace UserPassword. */
117
- export namespace UserPassword {
118
-
119
- /** Properties of a UserPassword. */
120
- interface IUserPassword {
121
-
122
- /** UserPassword encoding */
123
- encoding?: (UserPassword.UserPassword.Encoding|null);
124
-
125
- /** UserPassword transformer */
126
- transformer?: (UserPassword.UserPassword.Transformer|null);
127
-
128
- /** UserPassword transformerArg */
129
- transformerArg?: (UserPassword.UserPassword.ITransformerArg[]|null);
130
-
131
- /** UserPassword transformedData */
132
- transformedData?: (Uint8Array|null);
133
- }
134
-
135
- /** Represents a UserPassword. */
136
- class UserPassword implements IUserPassword {
137
-
138
- /**
139
- * Constructs a new UserPassword.
140
- * @param [properties] Properties to set
141
- */
142
- constructor(properties?: UserPassword.IUserPassword);
143
-
144
- /** UserPassword encoding. */
145
- public encoding?: (UserPassword.UserPassword.Encoding|null);
146
-
147
- /** UserPassword transformer. */
148
- public transformer?: (UserPassword.UserPassword.Transformer|null);
149
-
150
- /** UserPassword transformerArg. */
151
- public transformerArg: UserPassword.UserPassword.ITransformerArg[];
152
-
153
- /** UserPassword transformedData. */
154
- public transformedData?: (Uint8Array|null);
155
-
156
- /** UserPassword _encoding. */
157
- public _encoding?: "encoding";
158
-
159
- /** UserPassword _transformer. */
160
- public _transformer?: "transformer";
161
-
162
- /** UserPassword _transformedData. */
163
- public _transformedData?: "transformedData";
164
-
165
- /**
166
- * Creates a new UserPassword instance using the specified properties.
167
- * @param [properties] Properties to set
168
- * @returns UserPassword instance
169
- */
170
- public static create(properties?: UserPassword.IUserPassword): UserPassword.UserPassword;
171
-
172
- /**
173
- * Encodes the specified UserPassword message. Does not implicitly {@link UserPassword.UserPassword.verify|verify} messages.
174
- * @param message UserPassword message or plain object to encode
175
- * @param [writer] Writer to encode to
176
- * @returns Writer
177
- */
178
- public static encode(message: UserPassword.IUserPassword, writer?: $protobuf.Writer): $protobuf.Writer;
179
-
180
- /**
181
- * Encodes the specified UserPassword message, length delimited. Does not implicitly {@link UserPassword.UserPassword.verify|verify} messages.
182
- * @param message UserPassword message or plain object to encode
183
- * @param [writer] Writer to encode to
184
- * @returns Writer
185
- */
186
- public static encodeDelimited(message: UserPassword.IUserPassword, writer?: $protobuf.Writer): $protobuf.Writer;
187
-
188
- /**
189
- * Decodes a UserPassword message from the specified reader or buffer.
190
- * @param reader Reader or buffer to decode from
191
- * @param [length] Message length if known beforehand
192
- * @returns UserPassword
193
- * @throws {Error} If the payload is not a reader or valid buffer
194
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
195
- */
196
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPassword.UserPassword;
197
-
198
- /**
199
- * Decodes a UserPassword message from the specified reader or buffer, length delimited.
200
- * @param reader Reader or buffer to decode from
201
- * @returns UserPassword
202
- * @throws {Error} If the payload is not a reader or valid buffer
203
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
204
- */
205
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPassword.UserPassword;
206
-
207
- /**
208
- * Verifies a UserPassword message.
209
- * @param message Plain object to verify
210
- * @returns `null` if valid, otherwise the reason why it is not
211
- */
212
- public static verify(message: { [k: string]: any }): (string|null);
213
-
214
- /**
215
- * Creates a UserPassword message from a plain object. Also converts values to their respective internal types.
216
- * @param object Plain object
217
- * @returns UserPassword
218
- */
219
- public static fromObject(object: { [k: string]: any }): UserPassword.UserPassword;
220
-
221
- /**
222
- * Creates a plain object from a UserPassword message. Also converts values to other types if specified.
223
- * @param message UserPassword
224
- * @param [options] Conversion options
225
- * @returns Plain object
226
- */
227
- public static toObject(message: UserPassword.UserPassword, options?: $protobuf.IConversionOptions): { [k: string]: any };
228
-
229
- /**
230
- * Converts this UserPassword to JSON.
231
- * @returns JSON object
232
- */
233
- public toJSON(): { [k: string]: any };
234
-
235
- /**
236
- * Gets the default type url for UserPassword
237
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
238
- * @returns The default type url
239
- */
240
- public static getTypeUrl(typeUrlPrefix?: string): string;
241
- }
242
-
243
- namespace UserPassword {
244
-
245
- /** Encoding enum. */
246
- enum Encoding {
247
- UTF8 = 0,
248
- UTF8_BROKEN = 1
249
- }
250
-
251
- /** Transformer enum. */
252
- enum Transformer {
253
- NONE = 0,
254
- PBKDF2_HMAC_SHA512 = 1,
255
- PBKDF2_HMAC_SHA384 = 2
256
- }
257
-
258
- /** Properties of a TransformerArg. */
259
- interface ITransformerArg {
260
-
261
- /** TransformerArg key */
262
- key?: (string|null);
263
-
264
- /** TransformerArg value */
265
- value?: (UserPassword.UserPassword.TransformerArg.IValue|null);
266
- }
267
-
268
- /** Represents a TransformerArg. */
269
- class TransformerArg implements ITransformerArg {
270
-
271
- /**
272
- * Constructs a new TransformerArg.
273
- * @param [properties] Properties to set
274
- */
275
- constructor(properties?: UserPassword.UserPassword.ITransformerArg);
276
-
277
- /** TransformerArg key. */
278
- public key?: (string|null);
279
-
280
- /** TransformerArg value. */
281
- public value?: (UserPassword.UserPassword.TransformerArg.IValue|null);
282
-
283
- /** TransformerArg _key. */
284
- public _key?: "key";
285
-
286
- /** TransformerArg _value. */
287
- public _value?: "value";
288
-
289
- /**
290
- * Creates a new TransformerArg instance using the specified properties.
291
- * @param [properties] Properties to set
292
- * @returns TransformerArg instance
293
- */
294
- public static create(properties?: UserPassword.UserPassword.ITransformerArg): UserPassword.UserPassword.TransformerArg;
295
-
296
- /**
297
- * Encodes the specified TransformerArg message. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.verify|verify} messages.
298
- * @param message TransformerArg message or plain object to encode
299
- * @param [writer] Writer to encode to
300
- * @returns Writer
301
- */
302
- public static encode(message: UserPassword.UserPassword.ITransformerArg, writer?: $protobuf.Writer): $protobuf.Writer;
303
-
304
- /**
305
- * Encodes the specified TransformerArg message, length delimited. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.verify|verify} messages.
306
- * @param message TransformerArg message or plain object to encode
307
- * @param [writer] Writer to encode to
308
- * @returns Writer
309
- */
310
- public static encodeDelimited(message: UserPassword.UserPassword.ITransformerArg, writer?: $protobuf.Writer): $protobuf.Writer;
311
-
312
- /**
313
- * Decodes a TransformerArg message from the specified reader or buffer.
314
- * @param reader Reader or buffer to decode from
315
- * @param [length] Message length if known beforehand
316
- * @returns TransformerArg
317
- * @throws {Error} If the payload is not a reader or valid buffer
318
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
319
- */
320
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPassword.UserPassword.TransformerArg;
321
-
322
- /**
323
- * Decodes a TransformerArg message from the specified reader or buffer, length delimited.
324
- * @param reader Reader or buffer to decode from
325
- * @returns TransformerArg
326
- * @throws {Error} If the payload is not a reader or valid buffer
327
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
328
- */
329
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPassword.UserPassword.TransformerArg;
330
-
331
- /**
332
- * Verifies a TransformerArg message.
333
- * @param message Plain object to verify
334
- * @returns `null` if valid, otherwise the reason why it is not
335
- */
336
- public static verify(message: { [k: string]: any }): (string|null);
337
-
338
- /**
339
- * Creates a TransformerArg message from a plain object. Also converts values to their respective internal types.
340
- * @param object Plain object
341
- * @returns TransformerArg
342
- */
343
- public static fromObject(object: { [k: string]: any }): UserPassword.UserPassword.TransformerArg;
344
-
345
- /**
346
- * Creates a plain object from a TransformerArg message. Also converts values to other types if specified.
347
- * @param message TransformerArg
348
- * @param [options] Conversion options
349
- * @returns Plain object
350
- */
351
- public static toObject(message: UserPassword.UserPassword.TransformerArg, options?: $protobuf.IConversionOptions): { [k: string]: any };
352
-
353
- /**
354
- * Converts this TransformerArg to JSON.
355
- * @returns JSON object
356
- */
357
- public toJSON(): { [k: string]: any };
358
-
359
- /**
360
- * Gets the default type url for TransformerArg
361
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
362
- * @returns The default type url
363
- */
364
- public static getTypeUrl(typeUrlPrefix?: string): string;
365
- }
366
-
367
- namespace TransformerArg {
368
-
369
- /** Properties of a Value. */
370
- interface IValue {
371
-
372
- /** Value asBlob */
373
- asBlob?: (Uint8Array|null);
374
-
375
- /** Value asUnsignedInteger */
376
- asUnsignedInteger?: (number|null);
377
- }
378
-
379
- /** Represents a Value. */
380
- class Value implements IValue {
381
-
382
- /**
383
- * Constructs a new Value.
384
- * @param [properties] Properties to set
385
- */
386
- constructor(properties?: UserPassword.UserPassword.TransformerArg.IValue);
387
-
388
- /** Value asBlob. */
389
- public asBlob?: (Uint8Array|null);
390
-
391
- /** Value asUnsignedInteger. */
392
- public asUnsignedInteger?: (number|null);
393
-
394
- /** Value value. */
395
- public value?: ("asBlob"|"asUnsignedInteger");
396
-
397
- /**
398
- * Creates a new Value instance using the specified properties.
399
- * @param [properties] Properties to set
400
- * @returns Value instance
401
- */
402
- public static create(properties?: UserPassword.UserPassword.TransformerArg.IValue): UserPassword.UserPassword.TransformerArg.Value;
403
-
404
- /**
405
- * Encodes the specified Value message. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.Value.verify|verify} messages.
406
- * @param message Value message or plain object to encode
407
- * @param [writer] Writer to encode to
408
- * @returns Writer
409
- */
410
- public static encode(message: UserPassword.UserPassword.TransformerArg.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
411
-
412
- /**
413
- * Encodes the specified Value message, length delimited. Does not implicitly {@link UserPassword.UserPassword.TransformerArg.Value.verify|verify} messages.
414
- * @param message Value message or plain object to encode
415
- * @param [writer] Writer to encode to
416
- * @returns Writer
417
- */
418
- public static encodeDelimited(message: UserPassword.UserPassword.TransformerArg.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
419
-
420
- /**
421
- * Decodes a Value message from the specified reader or buffer.
422
- * @param reader Reader or buffer to decode from
423
- * @param [length] Message length if known beforehand
424
- * @returns Value
425
- * @throws {Error} If the payload is not a reader or valid buffer
426
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
427
- */
428
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPassword.UserPassword.TransformerArg.Value;
429
-
430
- /**
431
- * Decodes a Value message from the specified reader or buffer, length delimited.
432
- * @param reader Reader or buffer to decode from
433
- * @returns Value
434
- * @throws {Error} If the payload is not a reader or valid buffer
435
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
436
- */
437
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPassword.UserPassword.TransformerArg.Value;
438
-
439
- /**
440
- * Verifies a Value message.
441
- * @param message Plain object to verify
442
- * @returns `null` if valid, otherwise the reason why it is not
443
- */
444
- public static verify(message: { [k: string]: any }): (string|null);
445
-
446
- /**
447
- * Creates a Value message from a plain object. Also converts values to their respective internal types.
448
- * @param object Plain object
449
- * @returns Value
450
- */
451
- public static fromObject(object: { [k: string]: any }): UserPassword.UserPassword.TransformerArg.Value;
452
-
453
- /**
454
- * Creates a plain object from a Value message. Also converts values to other types if specified.
455
- * @param message Value
456
- * @param [options] Conversion options
457
- * @returns Plain object
458
- */
459
- public static toObject(message: UserPassword.UserPassword.TransformerArg.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
460
-
461
- /**
462
- * Converts this Value to JSON.
463
- * @returns JSON object
464
- */
465
- public toJSON(): { [k: string]: any };
466
-
467
- /**
468
- * Gets the default type url for Value
469
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
470
- * @returns The default type url
471
- */
472
- public static getTypeUrl(typeUrlPrefix?: string): string;
473
- }
474
- }
475
- }
476
- }