@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,577 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace DeviceCapabilities. */
4
- export namespace DeviceCapabilities {
5
-
6
- /** Properties of a DeviceCapabilities. */
7
- interface IDeviceCapabilities {
8
-
9
- /** DeviceCapabilities chatLockSupportLevel */
10
- chatLockSupportLevel?: (DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel|null);
11
-
12
- /** DeviceCapabilities lidMigration */
13
- lidMigration?: (DeviceCapabilities.DeviceCapabilities.ILIDMigration|null);
14
-
15
- /** DeviceCapabilities businessBroadcast */
16
- businessBroadcast?: (DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast|null);
17
-
18
- /** DeviceCapabilities userHasAvatar */
19
- userHasAvatar?: (DeviceCapabilities.DeviceCapabilities.IUserHasAvatar|null);
20
-
21
- /** DeviceCapabilities memberNameTagPrimarySupport */
22
- memberNameTagPrimarySupport?: (DeviceCapabilities.DeviceCapabilities.MemberNameTagPrimarySupport|null);
23
-
24
- /** DeviceCapabilities aiThread */
25
- aiThread?: (DeviceCapabilities.DeviceCapabilities.IAiThread|null);
26
- }
27
-
28
- /** Represents a DeviceCapabilities. */
29
- class DeviceCapabilities implements IDeviceCapabilities {
30
-
31
- /**
32
- * Constructs a new DeviceCapabilities.
33
- * @param [properties] Properties to set
34
- */
35
- constructor(properties?: DeviceCapabilities.IDeviceCapabilities);
36
-
37
- /** DeviceCapabilities chatLockSupportLevel. */
38
- public chatLockSupportLevel?: (DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel|null);
39
-
40
- /** DeviceCapabilities lidMigration. */
41
- public lidMigration?: (DeviceCapabilities.DeviceCapabilities.ILIDMigration|null);
42
-
43
- /** DeviceCapabilities businessBroadcast. */
44
- public businessBroadcast?: (DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast|null);
45
-
46
- /** DeviceCapabilities userHasAvatar. */
47
- public userHasAvatar?: (DeviceCapabilities.DeviceCapabilities.IUserHasAvatar|null);
48
-
49
- /** DeviceCapabilities memberNameTagPrimarySupport. */
50
- public memberNameTagPrimarySupport?: (DeviceCapabilities.DeviceCapabilities.MemberNameTagPrimarySupport|null);
51
-
52
- /** DeviceCapabilities aiThread. */
53
- public aiThread?: (DeviceCapabilities.DeviceCapabilities.IAiThread|null);
54
-
55
- /** DeviceCapabilities _chatLockSupportLevel. */
56
- public _chatLockSupportLevel?: "chatLockSupportLevel";
57
-
58
- /** DeviceCapabilities _lidMigration. */
59
- public _lidMigration?: "lidMigration";
60
-
61
- /** DeviceCapabilities _businessBroadcast. */
62
- public _businessBroadcast?: "businessBroadcast";
63
-
64
- /** DeviceCapabilities _userHasAvatar. */
65
- public _userHasAvatar?: "userHasAvatar";
66
-
67
- /** DeviceCapabilities _memberNameTagPrimarySupport. */
68
- public _memberNameTagPrimarySupport?: "memberNameTagPrimarySupport";
69
-
70
- /** DeviceCapabilities _aiThread. */
71
- public _aiThread?: "aiThread";
72
-
73
- /**
74
- * Creates a new DeviceCapabilities instance using the specified properties.
75
- * @param [properties] Properties to set
76
- * @returns DeviceCapabilities instance
77
- */
78
- public static create(properties?: DeviceCapabilities.IDeviceCapabilities): DeviceCapabilities.DeviceCapabilities;
79
-
80
- /**
81
- * Encodes the specified DeviceCapabilities message. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.verify|verify} messages.
82
- * @param message DeviceCapabilities message or plain object to encode
83
- * @param [writer] Writer to encode to
84
- * @returns Writer
85
- */
86
- public static encode(message: DeviceCapabilities.IDeviceCapabilities, writer?: $protobuf.Writer): $protobuf.Writer;
87
-
88
- /**
89
- * Encodes the specified DeviceCapabilities message, length delimited. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.verify|verify} messages.
90
- * @param message DeviceCapabilities message or plain object to encode
91
- * @param [writer] Writer to encode to
92
- * @returns Writer
93
- */
94
- public static encodeDelimited(message: DeviceCapabilities.IDeviceCapabilities, writer?: $protobuf.Writer): $protobuf.Writer;
95
-
96
- /**
97
- * Decodes a DeviceCapabilities message from the specified reader or buffer.
98
- * @param reader Reader or buffer to decode from
99
- * @param [length] Message length if known beforehand
100
- * @returns DeviceCapabilities
101
- * @throws {Error} If the payload is not a reader or valid buffer
102
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
103
- */
104
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DeviceCapabilities.DeviceCapabilities;
105
-
106
- /**
107
- * Decodes a DeviceCapabilities message from the specified reader or buffer, length delimited.
108
- * @param reader Reader or buffer to decode from
109
- * @returns DeviceCapabilities
110
- * @throws {Error} If the payload is not a reader or valid buffer
111
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
112
- */
113
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DeviceCapabilities.DeviceCapabilities;
114
-
115
- /**
116
- * Verifies a DeviceCapabilities message.
117
- * @param message Plain object to verify
118
- * @returns `null` if valid, otherwise the reason why it is not
119
- */
120
- public static verify(message: { [k: string]: any }): (string|null);
121
-
122
- /**
123
- * Creates a DeviceCapabilities message from a plain object. Also converts values to their respective internal types.
124
- * @param object Plain object
125
- * @returns DeviceCapabilities
126
- */
127
- public static fromObject(object: { [k: string]: any }): DeviceCapabilities.DeviceCapabilities;
128
-
129
- /**
130
- * Creates a plain object from a DeviceCapabilities message. Also converts values to other types if specified.
131
- * @param message DeviceCapabilities
132
- * @param [options] Conversion options
133
- * @returns Plain object
134
- */
135
- public static toObject(message: DeviceCapabilities.DeviceCapabilities, options?: $protobuf.IConversionOptions): { [k: string]: any };
136
-
137
- /**
138
- * Converts this DeviceCapabilities to JSON.
139
- * @returns JSON object
140
- */
141
- public toJSON(): { [k: string]: any };
142
-
143
- /**
144
- * Gets the default type url for DeviceCapabilities
145
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
146
- * @returns The default type url
147
- */
148
- public static getTypeUrl(typeUrlPrefix?: string): string;
149
- }
150
-
151
- namespace DeviceCapabilities {
152
-
153
- /** Properties of an AiThread. */
154
- interface IAiThread {
155
-
156
- /** AiThread supportLevel */
157
- supportLevel?: (DeviceCapabilities.DeviceCapabilities.AiThread.SupportLevel|null);
158
- }
159
-
160
- /** Represents an AiThread. */
161
- class AiThread implements IAiThread {
162
-
163
- /**
164
- * Constructs a new AiThread.
165
- * @param [properties] Properties to set
166
- */
167
- constructor(properties?: DeviceCapabilities.DeviceCapabilities.IAiThread);
168
-
169
- /** AiThread supportLevel. */
170
- public supportLevel?: (DeviceCapabilities.DeviceCapabilities.AiThread.SupportLevel|null);
171
-
172
- /** AiThread _supportLevel. */
173
- public _supportLevel?: "supportLevel";
174
-
175
- /**
176
- * Creates a new AiThread instance using the specified properties.
177
- * @param [properties] Properties to set
178
- * @returns AiThread instance
179
- */
180
- public static create(properties?: DeviceCapabilities.DeviceCapabilities.IAiThread): DeviceCapabilities.DeviceCapabilities.AiThread;
181
-
182
- /**
183
- * Encodes the specified AiThread message. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.AiThread.verify|verify} messages.
184
- * @param message AiThread message or plain object to encode
185
- * @param [writer] Writer to encode to
186
- * @returns Writer
187
- */
188
- public static encode(message: DeviceCapabilities.DeviceCapabilities.IAiThread, writer?: $protobuf.Writer): $protobuf.Writer;
189
-
190
- /**
191
- * Encodes the specified AiThread message, length delimited. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.AiThread.verify|verify} messages.
192
- * @param message AiThread message or plain object to encode
193
- * @param [writer] Writer to encode to
194
- * @returns Writer
195
- */
196
- public static encodeDelimited(message: DeviceCapabilities.DeviceCapabilities.IAiThread, writer?: $protobuf.Writer): $protobuf.Writer;
197
-
198
- /**
199
- * Decodes an AiThread message from the specified reader or buffer.
200
- * @param reader Reader or buffer to decode from
201
- * @param [length] Message length if known beforehand
202
- * @returns AiThread
203
- * @throws {Error} If the payload is not a reader or valid buffer
204
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
205
- */
206
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DeviceCapabilities.DeviceCapabilities.AiThread;
207
-
208
- /**
209
- * Decodes an AiThread message from the specified reader or buffer, length delimited.
210
- * @param reader Reader or buffer to decode from
211
- * @returns AiThread
212
- * @throws {Error} If the payload is not a reader or valid buffer
213
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
214
- */
215
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DeviceCapabilities.DeviceCapabilities.AiThread;
216
-
217
- /**
218
- * Verifies an AiThread message.
219
- * @param message Plain object to verify
220
- * @returns `null` if valid, otherwise the reason why it is not
221
- */
222
- public static verify(message: { [k: string]: any }): (string|null);
223
-
224
- /**
225
- * Creates an AiThread message from a plain object. Also converts values to their respective internal types.
226
- * @param object Plain object
227
- * @returns AiThread
228
- */
229
- public static fromObject(object: { [k: string]: any }): DeviceCapabilities.DeviceCapabilities.AiThread;
230
-
231
- /**
232
- * Creates a plain object from an AiThread message. Also converts values to other types if specified.
233
- * @param message AiThread
234
- * @param [options] Conversion options
235
- * @returns Plain object
236
- */
237
- public static toObject(message: DeviceCapabilities.DeviceCapabilities.AiThread, options?: $protobuf.IConversionOptions): { [k: string]: any };
238
-
239
- /**
240
- * Converts this AiThread to JSON.
241
- * @returns JSON object
242
- */
243
- public toJSON(): { [k: string]: any };
244
-
245
- /**
246
- * Gets the default type url for AiThread
247
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
248
- * @returns The default type url
249
- */
250
- public static getTypeUrl(typeUrlPrefix?: string): string;
251
- }
252
-
253
- namespace AiThread {
254
-
255
- /** SupportLevel enum. */
256
- enum SupportLevel {
257
- NONE = 0,
258
- INFRA = 1,
259
- FULL = 2
260
- }
261
- }
262
-
263
- /** Properties of a BusinessBroadcast. */
264
- interface IBusinessBroadcast {
265
-
266
- /** BusinessBroadcast importListEnabled */
267
- importListEnabled?: (boolean|null);
268
- }
269
-
270
- /** Represents a BusinessBroadcast. */
271
- class BusinessBroadcast implements IBusinessBroadcast {
272
-
273
- /**
274
- * Constructs a new BusinessBroadcast.
275
- * @param [properties] Properties to set
276
- */
277
- constructor(properties?: DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast);
278
-
279
- /** BusinessBroadcast importListEnabled. */
280
- public importListEnabled?: (boolean|null);
281
-
282
- /** BusinessBroadcast _importListEnabled. */
283
- public _importListEnabled?: "importListEnabled";
284
-
285
- /**
286
- * Creates a new BusinessBroadcast instance using the specified properties.
287
- * @param [properties] Properties to set
288
- * @returns BusinessBroadcast instance
289
- */
290
- public static create(properties?: DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast): DeviceCapabilities.DeviceCapabilities.BusinessBroadcast;
291
-
292
- /**
293
- * Encodes the specified BusinessBroadcast message. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.verify|verify} messages.
294
- * @param message BusinessBroadcast message or plain object to encode
295
- * @param [writer] Writer to encode to
296
- * @returns Writer
297
- */
298
- public static encode(message: DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast, writer?: $protobuf.Writer): $protobuf.Writer;
299
-
300
- /**
301
- * Encodes the specified BusinessBroadcast message, length delimited. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.verify|verify} messages.
302
- * @param message BusinessBroadcast message or plain object to encode
303
- * @param [writer] Writer to encode to
304
- * @returns Writer
305
- */
306
- public static encodeDelimited(message: DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast, writer?: $protobuf.Writer): $protobuf.Writer;
307
-
308
- /**
309
- * Decodes a BusinessBroadcast message from the specified reader or buffer.
310
- * @param reader Reader or buffer to decode from
311
- * @param [length] Message length if known beforehand
312
- * @returns BusinessBroadcast
313
- * @throws {Error} If the payload is not a reader or valid buffer
314
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
315
- */
316
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DeviceCapabilities.DeviceCapabilities.BusinessBroadcast;
317
-
318
- /**
319
- * Decodes a BusinessBroadcast message from the specified reader or buffer, length delimited.
320
- * @param reader Reader or buffer to decode from
321
- * @returns BusinessBroadcast
322
- * @throws {Error} If the payload is not a reader or valid buffer
323
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
324
- */
325
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DeviceCapabilities.DeviceCapabilities.BusinessBroadcast;
326
-
327
- /**
328
- * Verifies a BusinessBroadcast message.
329
- * @param message Plain object to verify
330
- * @returns `null` if valid, otherwise the reason why it is not
331
- */
332
- public static verify(message: { [k: string]: any }): (string|null);
333
-
334
- /**
335
- * Creates a BusinessBroadcast message from a plain object. Also converts values to their respective internal types.
336
- * @param object Plain object
337
- * @returns BusinessBroadcast
338
- */
339
- public static fromObject(object: { [k: string]: any }): DeviceCapabilities.DeviceCapabilities.BusinessBroadcast;
340
-
341
- /**
342
- * Creates a plain object from a BusinessBroadcast message. Also converts values to other types if specified.
343
- * @param message BusinessBroadcast
344
- * @param [options] Conversion options
345
- * @returns Plain object
346
- */
347
- public static toObject(message: DeviceCapabilities.DeviceCapabilities.BusinessBroadcast, options?: $protobuf.IConversionOptions): { [k: string]: any };
348
-
349
- /**
350
- * Converts this BusinessBroadcast to JSON.
351
- * @returns JSON object
352
- */
353
- public toJSON(): { [k: string]: any };
354
-
355
- /**
356
- * Gets the default type url for BusinessBroadcast
357
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
358
- * @returns The default type url
359
- */
360
- public static getTypeUrl(typeUrlPrefix?: string): string;
361
- }
362
-
363
- /** ChatLockSupportLevel enum. */
364
- enum ChatLockSupportLevel {
365
- NONE = 0,
366
- MINIMAL = 1,
367
- FULL = 2
368
- }
369
-
370
- /** Properties of a LIDMigration. */
371
- interface ILIDMigration {
372
-
373
- /** LIDMigration chatDbMigrationTimestamp */
374
- chatDbMigrationTimestamp?: (number|Long|null);
375
- }
376
-
377
- /** Represents a LIDMigration. */
378
- class LIDMigration implements ILIDMigration {
379
-
380
- /**
381
- * Constructs a new LIDMigration.
382
- * @param [properties] Properties to set
383
- */
384
- constructor(properties?: DeviceCapabilities.DeviceCapabilities.ILIDMigration);
385
-
386
- /** LIDMigration chatDbMigrationTimestamp. */
387
- public chatDbMigrationTimestamp?: (number|Long|null);
388
-
389
- /** LIDMigration _chatDbMigrationTimestamp. */
390
- public _chatDbMigrationTimestamp?: "chatDbMigrationTimestamp";
391
-
392
- /**
393
- * Creates a new LIDMigration instance using the specified properties.
394
- * @param [properties] Properties to set
395
- * @returns LIDMigration instance
396
- */
397
- public static create(properties?: DeviceCapabilities.DeviceCapabilities.ILIDMigration): DeviceCapabilities.DeviceCapabilities.LIDMigration;
398
-
399
- /**
400
- * Encodes the specified LIDMigration message. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.LIDMigration.verify|verify} messages.
401
- * @param message LIDMigration message or plain object to encode
402
- * @param [writer] Writer to encode to
403
- * @returns Writer
404
- */
405
- public static encode(message: DeviceCapabilities.DeviceCapabilities.ILIDMigration, writer?: $protobuf.Writer): $protobuf.Writer;
406
-
407
- /**
408
- * Encodes the specified LIDMigration message, length delimited. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.LIDMigration.verify|verify} messages.
409
- * @param message LIDMigration message or plain object to encode
410
- * @param [writer] Writer to encode to
411
- * @returns Writer
412
- */
413
- public static encodeDelimited(message: DeviceCapabilities.DeviceCapabilities.ILIDMigration, writer?: $protobuf.Writer): $protobuf.Writer;
414
-
415
- /**
416
- * Decodes a LIDMigration message from the specified reader or buffer.
417
- * @param reader Reader or buffer to decode from
418
- * @param [length] Message length if known beforehand
419
- * @returns LIDMigration
420
- * @throws {Error} If the payload is not a reader or valid buffer
421
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
422
- */
423
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DeviceCapabilities.DeviceCapabilities.LIDMigration;
424
-
425
- /**
426
- * Decodes a LIDMigration message from the specified reader or buffer, length delimited.
427
- * @param reader Reader or buffer to decode from
428
- * @returns LIDMigration
429
- * @throws {Error} If the payload is not a reader or valid buffer
430
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
431
- */
432
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DeviceCapabilities.DeviceCapabilities.LIDMigration;
433
-
434
- /**
435
- * Verifies a LIDMigration message.
436
- * @param message Plain object to verify
437
- * @returns `null` if valid, otherwise the reason why it is not
438
- */
439
- public static verify(message: { [k: string]: any }): (string|null);
440
-
441
- /**
442
- * Creates a LIDMigration message from a plain object. Also converts values to their respective internal types.
443
- * @param object Plain object
444
- * @returns LIDMigration
445
- */
446
- public static fromObject(object: { [k: string]: any }): DeviceCapabilities.DeviceCapabilities.LIDMigration;
447
-
448
- /**
449
- * Creates a plain object from a LIDMigration message. Also converts values to other types if specified.
450
- * @param message LIDMigration
451
- * @param [options] Conversion options
452
- * @returns Plain object
453
- */
454
- public static toObject(message: DeviceCapabilities.DeviceCapabilities.LIDMigration, options?: $protobuf.IConversionOptions): { [k: string]: any };
455
-
456
- /**
457
- * Converts this LIDMigration to JSON.
458
- * @returns JSON object
459
- */
460
- public toJSON(): { [k: string]: any };
461
-
462
- /**
463
- * Gets the default type url for LIDMigration
464
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
465
- * @returns The default type url
466
- */
467
- public static getTypeUrl(typeUrlPrefix?: string): string;
468
- }
469
-
470
- /** MemberNameTagPrimarySupport enum. */
471
- enum MemberNameTagPrimarySupport {
472
- DISABLED = 0,
473
- RECEIVER_ENABLED = 1,
474
- SENDER_ENABLED = 2
475
- }
476
-
477
- /** Properties of a UserHasAvatar. */
478
- interface IUserHasAvatar {
479
-
480
- /** UserHasAvatar userHasAvatar */
481
- userHasAvatar?: (boolean|null);
482
- }
483
-
484
- /** Represents a UserHasAvatar. */
485
- class UserHasAvatar implements IUserHasAvatar {
486
-
487
- /**
488
- * Constructs a new UserHasAvatar.
489
- * @param [properties] Properties to set
490
- */
491
- constructor(properties?: DeviceCapabilities.DeviceCapabilities.IUserHasAvatar);
492
-
493
- /** UserHasAvatar userHasAvatar. */
494
- public userHasAvatar?: (boolean|null);
495
-
496
- /** UserHasAvatar _userHasAvatar. */
497
- public _userHasAvatar?: "userHasAvatar";
498
-
499
- /**
500
- * Creates a new UserHasAvatar instance using the specified properties.
501
- * @param [properties] Properties to set
502
- * @returns UserHasAvatar instance
503
- */
504
- public static create(properties?: DeviceCapabilities.DeviceCapabilities.IUserHasAvatar): DeviceCapabilities.DeviceCapabilities.UserHasAvatar;
505
-
506
- /**
507
- * Encodes the specified UserHasAvatar message. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.UserHasAvatar.verify|verify} messages.
508
- * @param message UserHasAvatar message or plain object to encode
509
- * @param [writer] Writer to encode to
510
- * @returns Writer
511
- */
512
- public static encode(message: DeviceCapabilities.DeviceCapabilities.IUserHasAvatar, writer?: $protobuf.Writer): $protobuf.Writer;
513
-
514
- /**
515
- * Encodes the specified UserHasAvatar message, length delimited. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.UserHasAvatar.verify|verify} messages.
516
- * @param message UserHasAvatar message or plain object to encode
517
- * @param [writer] Writer to encode to
518
- * @returns Writer
519
- */
520
- public static encodeDelimited(message: DeviceCapabilities.DeviceCapabilities.IUserHasAvatar, writer?: $protobuf.Writer): $protobuf.Writer;
521
-
522
- /**
523
- * Decodes a UserHasAvatar message from the specified reader or buffer.
524
- * @param reader Reader or buffer to decode from
525
- * @param [length] Message length if known beforehand
526
- * @returns UserHasAvatar
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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DeviceCapabilities.DeviceCapabilities.UserHasAvatar;
531
-
532
- /**
533
- * Decodes a UserHasAvatar message from the specified reader or buffer, length delimited.
534
- * @param reader Reader or buffer to decode from
535
- * @returns UserHasAvatar
536
- * @throws {Error} If the payload is not a reader or valid buffer
537
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
538
- */
539
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DeviceCapabilities.DeviceCapabilities.UserHasAvatar;
540
-
541
- /**
542
- * Verifies a UserHasAvatar message.
543
- * @param message Plain object to verify
544
- * @returns `null` if valid, otherwise the reason why it is not
545
- */
546
- public static verify(message: { [k: string]: any }): (string|null);
547
-
548
- /**
549
- * Creates a UserHasAvatar message from a plain object. Also converts values to their respective internal types.
550
- * @param object Plain object
551
- * @returns UserHasAvatar
552
- */
553
- public static fromObject(object: { [k: string]: any }): DeviceCapabilities.DeviceCapabilities.UserHasAvatar;
554
-
555
- /**
556
- * Creates a plain object from a UserHasAvatar message. Also converts values to other types if specified.
557
- * @param message UserHasAvatar
558
- * @param [options] Conversion options
559
- * @returns Plain object
560
- */
561
- public static toObject(message: DeviceCapabilities.DeviceCapabilities.UserHasAvatar, options?: $protobuf.IConversionOptions): { [k: string]: any };
562
-
563
- /**
564
- * Converts this UserHasAvatar to JSON.
565
- * @returns JSON object
566
- */
567
- public toJSON(): { [k: string]: any };
568
-
569
- /**
570
- * Gets the default type url for UserHasAvatar
571
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
572
- * @returns The default type url
573
- */
574
- public static getTypeUrl(typeUrlPrefix?: string): string;
575
- }
576
- }
577
- }