@aseppxyzz12/baileys 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +2579 -0
  3. package/WAProto/AICommon/AICommon.js +19396 -0
  4. package/WAProto/AICommon/AICommon.proto +820 -0
  5. package/WAProto/Adv/Adv.js +1137 -0
  6. package/WAProto/Adv/Adv.proto +42 -0
  7. package/WAProto/BotMetadata/BotMetadata.js +8975 -0
  8. package/WAProto/BotMetadata/BotMetadata.proto +484 -0
  9. package/WAProto/Cert/Cert.js +893 -0
  10. package/WAProto/Cert/Cert.proto +30 -0
  11. package/WAProto/ChatLockSettings/ChatLockSettings.js +673 -0
  12. package/WAProto/ChatLockSettings/ChatLockSettings.proto +9 -0
  13. package/WAProto/CompanionReg/CompanionReg.js +2457 -0
  14. package/WAProto/CompanionReg/CompanionReg.proto +103 -0
  15. package/WAProto/DeviceCapabilities/DeviceCapabilities.js +846 -0
  16. package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +38 -0
  17. package/WAProto/E2E/E2E.js +78728 -0
  18. package/WAProto/E2E/E2E.proto +1970 -0
  19. package/WAProto/Ephemeral/Ephemeral.js +143 -0
  20. package/WAProto/Ephemeral/Ephemeral.proto +7 -0
  21. package/WAProto/HistorySync/HistorySync.js +95931 -0
  22. package/WAProto/HistorySync/HistorySync.proto +229 -0
  23. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +414 -0
  24. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +13 -0
  25. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +980 -0
  26. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +38 -0
  27. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +81185 -0
  28. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +88 -0
  29. package/WAProto/MmsRetry/MmsRetry.js +310 -0
  30. package/WAProto/MmsRetry/MmsRetry.proto +19 -0
  31. package/WAProto/Protocol/Protocol.js +399 -0
  32. package/WAProto/Protocol/Protocol.proto +22 -0
  33. package/WAProto/Reporting/Reporting.js +535 -0
  34. package/WAProto/Reporting/Reporting.proto +22 -0
  35. package/WAProto/ServerSync/ServerSync.js +1830 -0
  36. package/WAProto/ServerSync/ServerSync.proto +70 -0
  37. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +3267 -0
  38. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +95 -0
  39. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1140 -0
  40. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +44 -0
  41. package/WAProto/StatusAttributions/StatusAttributions.js +1604 -0
  42. package/WAProto/StatusAttributions/StatusAttributions.proto +89 -0
  43. package/WAProto/SyncAction/SyncAction.js +17424 -0
  44. package/WAProto/SyncAction/SyncAction.proto +663 -0
  45. package/WAProto/UserPassword/UserPassword.js +544 -0
  46. package/WAProto/UserPassword/UserPassword.proto +28 -0
  47. package/WAProto/VnameCert/VnameCert.js +1466 -0
  48. package/WAProto/VnameCert/VnameCert.proto +65 -0
  49. package/WAProto/Wa6/Wa6.js +4601 -0
  50. package/WAProto/Wa6/Wa6.proto +241 -0
  51. package/WAProto/Web/Web.js +90819 -0
  52. package/WAProto/Web/Web.proto +605 -0
  53. package/WAProto/index.js +30 -0
  54. package/engine-requirements.js +9 -0
  55. package/lib/Defaults/baileys-version.json +3 -0
  56. package/lib/Defaults/connection.js +39 -0
  57. package/lib/Defaults/constants.js +50 -0
  58. package/lib/Defaults/history.js +13 -0
  59. package/lib/Defaults/index.js +36 -0
  60. package/lib/Defaults/media.js +43 -0
  61. package/lib/Defaults/phonenumber-mcc.json +223 -0
  62. package/lib/Defaults/prefix.js +12 -0
  63. package/lib/Function/Download/tiktok.js +19 -0
  64. package/lib/Function/Tools/bypass.js +19 -0
  65. package/lib/Function/index.js +13 -0
  66. package/lib/Signal/Group/ciphertext-message.js +14 -0
  67. package/lib/Signal/Group/group-session-builder.js +46 -0
  68. package/lib/Signal/Group/group_cipher.js +104 -0
  69. package/lib/Signal/Group/index.js +42 -0
  70. package/lib/Signal/Group/keyhelper.js +21 -0
  71. package/lib/Signal/Group/queue-job.js +57 -0
  72. package/lib/Signal/Group/sender-chain-key.js +34 -0
  73. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  74. package/lib/Signal/Group/sender-key-message.js +78 -0
  75. package/lib/Signal/Group/sender-key-name.js +49 -0
  76. package/lib/Signal/Group/sender-key-record.js +45 -0
  77. package/lib/Signal/Group/sender-key-state.js +100 -0
  78. package/lib/Signal/Group/sender-message-key.js +28 -0
  79. package/lib/Signal/libsignal.js +364 -0
  80. package/lib/Signal/lid-mapping.js +164 -0
  81. package/lib/Socket/Client/abstract-socket-client.js +13 -0
  82. package/lib/Socket/Client/index.js +31 -0
  83. package/lib/Socket/Client/mobile-socket-client.js +65 -0
  84. package/lib/Socket/Client/types.js +12 -0
  85. package/lib/Socket/Client/web-socket-client.js +62 -0
  86. package/lib/Socket/Client/websocket.js +67 -0
  87. package/lib/Socket/business.js +291 -0
  88. package/lib/Socket/chats.js +874 -0
  89. package/lib/Socket/community.js +454 -0
  90. package/lib/Socket/dugong.js +658 -0
  91. package/lib/Socket/groups.js +357 -0
  92. package/lib/Socket/index.js +13 -0
  93. package/lib/Socket/messages-recv.js +1509 -0
  94. package/lib/Socket/messages-send.js +1505 -0
  95. package/lib/Socket/mex.js +54 -0
  96. package/lib/Socket/newsletter.js +171 -0
  97. package/lib/Socket/registration.js +167 -0
  98. package/lib/Socket/rich-content.js +279 -0
  99. package/lib/Socket/socket.js +905 -0
  100. package/lib/Socket/username.js +157 -0
  101. package/lib/Socket/usync.js +70 -0
  102. package/lib/Store/index.js +37 -0
  103. package/lib/Store/keyed-db.js +114 -0
  104. package/lib/Store/make-cache-manager-store.js +77 -0
  105. package/lib/Store/make-in-memory-store.js +423 -0
  106. package/lib/Store/make-ordered-dictionary.js +78 -0
  107. package/lib/Store/object-repository.js +26 -0
  108. package/lib/Types/Auth.js +2 -0
  109. package/lib/Types/Bussines.js +2 -0
  110. package/lib/Types/Call.js +2 -0
  111. package/lib/Types/Chat.js +10 -0
  112. package/lib/Types/Contact.js +2 -0
  113. package/lib/Types/Events.js +2 -0
  114. package/lib/Types/GroupMetadata.js +2 -0
  115. package/lib/Types/Label.js +25 -0
  116. package/lib/Types/LabelAssociation.js +4 -0
  117. package/lib/Types/Message.js +11 -0
  118. package/lib/Types/Mex.js +40 -0
  119. package/lib/Types/MexUpdates.js +15 -0
  120. package/lib/Types/Newsletter.js +32 -0
  121. package/lib/Types/Product.js +2 -0
  122. package/lib/Types/Signal.js +2 -0
  123. package/lib/Types/Socket.js +2 -0
  124. package/lib/Types/State.js +9 -0
  125. package/lib/Types/USync.js +2 -0
  126. package/lib/Types/index.js +60 -0
  127. package/lib/Utils/auth-utils.js +256 -0
  128. package/lib/Utils/baileys-event-stream.js +63 -0
  129. package/lib/Utils/bot-toolkit.js +455 -0
  130. package/lib/Utils/browser-utils.js +29 -0
  131. package/lib/Utils/business.js +233 -0
  132. package/lib/Utils/chat-utils.js +904 -0
  133. package/lib/Utils/companion-reg-client-utils.js +41 -0
  134. package/lib/Utils/crypto.js +144 -0
  135. package/lib/Utils/decode-wa-message.js +305 -0
  136. package/lib/Utils/event-buffer.js +555 -0
  137. package/lib/Utils/generics.js +411 -0
  138. package/lib/Utils/history.js +100 -0
  139. package/lib/Utils/identity-change-handler.js +53 -0
  140. package/lib/Utils/index.js +57 -0
  141. package/lib/Utils/link-preview.js +76 -0
  142. package/lib/Utils/logger.js +4 -0
  143. package/lib/Utils/lt-hash.js +45 -0
  144. package/lib/Utils/make-mutex.js +33 -0
  145. package/lib/Utils/message-composer.js +289 -0
  146. package/lib/Utils/message-retry-manager.js +134 -0
  147. package/lib/Utils/messages-media.js +806 -0
  148. package/lib/Utils/messages.js +1908 -0
  149. package/lib/Utils/noise-handler.js +157 -0
  150. package/lib/Utils/offline-node-processor.js +42 -0
  151. package/lib/Utils/pre-key-manager.js +86 -0
  152. package/lib/Utils/process-message.js +814 -0
  153. package/lib/Utils/reporting-utils.js +264 -0
  154. package/lib/Utils/signal.js +183 -0
  155. package/lib/Utils/stanza-ack.js +36 -0
  156. package/lib/Utils/sync-action-utils.js +52 -0
  157. package/lib/Utils/tc-token-utils.js +167 -0
  158. package/lib/Utils/use-multi-file-auth-state.js +104 -0
  159. package/lib/Utils/validate-connection.js +229 -0
  160. package/lib/Utils/vialeys-event-stream.js +41 -0
  161. package/lib/WABinary/constants.js +1308 -0
  162. package/lib/WABinary/decode.js +233 -0
  163. package/lib/WABinary/encode.js +212 -0
  164. package/lib/WABinary/generic-utils.js +124 -0
  165. package/lib/WABinary/index.js +36 -0
  166. package/lib/WABinary/jid-utils.js +101 -0
  167. package/lib/WABinary/types.js +2 -0
  168. package/lib/WAM/BinaryInfo.js +12 -0
  169. package/lib/WAM/constants.js +20491 -0
  170. package/lib/WAM/encode.js +148 -0
  171. package/lib/WAM/index.js +34 -0
  172. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +62 -0
  173. package/lib/WAUSync/Protocols/USyncContactProtocol.js +38 -0
  174. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +50 -0
  175. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +25 -0
  176. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +24 -0
  177. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +32 -0
  178. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +24 -0
  179. package/lib/WAUSync/Protocols/index.js +38 -0
  180. package/lib/WAUSync/USyncQuery.js +97 -0
  181. package/lib/WAUSync/USyncUser.js +33 -0
  182. package/lib/WAUSync/index.js +34 -0
  183. package/lib/index.js +113 -0
  184. package/lib/messages-send.js +1496 -0
  185. package/package.json +100 -0
@@ -0,0 +1,846 @@
1
+ "use strict";
2
+ var $protobuf = require("protobufjs/minimal");
3
+ var $Reader = $protobuf.Reader,
4
+ $Writer = $protobuf.Writer,
5
+ $util = $protobuf.util;
6
+ var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
7
+ $root.DeviceCapabilities = (function () {
8
+ var DeviceCapabilities = {};
9
+ DeviceCapabilities.DeviceCapabilities = (function () {
10
+ function DeviceCapabilities(properties) {
11
+ if (properties)
12
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13
+ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];
14
+ }
15
+ DeviceCapabilities.prototype.chatLockSupportLevel = null;
16
+ DeviceCapabilities.prototype.lidMigration = null;
17
+ DeviceCapabilities.prototype.businessBroadcast = null;
18
+ DeviceCapabilities.prototype.userHasAvatar = null;
19
+ DeviceCapabilities.prototype.memberNameTagPrimarySupport = null;
20
+ DeviceCapabilities.prototype.aiThread = null;
21
+ var $oneOfFields;
22
+ Object.defineProperty(DeviceCapabilities.prototype, "_chatLockSupportLevel", {
23
+ get: $util.oneOfGetter(($oneOfFields = ["chatLockSupportLevel"])),
24
+ set: $util.oneOfSetter($oneOfFields),
25
+ });
26
+ Object.defineProperty(DeviceCapabilities.prototype, "_lidMigration", {
27
+ get: $util.oneOfGetter(($oneOfFields = ["lidMigration"])),
28
+ set: $util.oneOfSetter($oneOfFields),
29
+ });
30
+ Object.defineProperty(DeviceCapabilities.prototype, "_businessBroadcast", {
31
+ get: $util.oneOfGetter(($oneOfFields = ["businessBroadcast"])),
32
+ set: $util.oneOfSetter($oneOfFields),
33
+ });
34
+ Object.defineProperty(DeviceCapabilities.prototype, "_userHasAvatar", {
35
+ get: $util.oneOfGetter(($oneOfFields = ["userHasAvatar"])),
36
+ set: $util.oneOfSetter($oneOfFields),
37
+ });
38
+ Object.defineProperty(DeviceCapabilities.prototype, "_memberNameTagPrimarySupport", {
39
+ get: $util.oneOfGetter(($oneOfFields = ["memberNameTagPrimarySupport"])),
40
+ set: $util.oneOfSetter($oneOfFields),
41
+ });
42
+ Object.defineProperty(DeviceCapabilities.prototype, "_aiThread", {
43
+ get: $util.oneOfGetter(($oneOfFields = ["aiThread"])),
44
+ set: $util.oneOfSetter($oneOfFields),
45
+ });
46
+ DeviceCapabilities.create = function create(properties) {
47
+ return new DeviceCapabilities(properties);
48
+ };
49
+ DeviceCapabilities.encode = function encode(message, writer) {
50
+ if (!writer) writer = $Writer.create();
51
+ if (
52
+ message.chatLockSupportLevel != null &&
53
+ Object.hasOwnProperty.call(message, "chatLockSupportLevel")
54
+ )
55
+ writer.uint32(8).int32(message.chatLockSupportLevel);
56
+ if (message.lidMigration != null && Object.hasOwnProperty.call(message, "lidMigration"))
57
+ $root.DeviceCapabilities.DeviceCapabilities.LIDMigration.encode(
58
+ message.lidMigration,
59
+ writer.uint32(18).fork()
60
+ ).ldelim();
61
+ if (
62
+ message.businessBroadcast != null &&
63
+ Object.hasOwnProperty.call(message, "businessBroadcast")
64
+ )
65
+ $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.encode(
66
+ message.businessBroadcast,
67
+ writer.uint32(26).fork()
68
+ ).ldelim();
69
+ if (
70
+ message.userHasAvatar != null &&
71
+ Object.hasOwnProperty.call(message, "userHasAvatar")
72
+ )
73
+ $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.encode(
74
+ message.userHasAvatar,
75
+ writer.uint32(34).fork()
76
+ ).ldelim();
77
+ if (
78
+ message.memberNameTagPrimarySupport != null &&
79
+ Object.hasOwnProperty.call(message, "memberNameTagPrimarySupport")
80
+ )
81
+ writer.uint32(40).int32(message.memberNameTagPrimarySupport);
82
+ if (message.aiThread != null && Object.hasOwnProperty.call(message, "aiThread"))
83
+ $root.DeviceCapabilities.DeviceCapabilities.AiThread.encode(
84
+ message.aiThread,
85
+ writer.uint32(50).fork()
86
+ ).ldelim();
87
+ return writer;
88
+ };
89
+ DeviceCapabilities.encodeDelimited = function encodeDelimited(message, writer) {
90
+ return this.encode(message, writer).ldelim();
91
+ };
92
+ DeviceCapabilities.decode = function decode(reader, length, error) {
93
+ if (!(reader instanceof $Reader)) reader = $Reader.create(reader);
94
+ var end = length === undefined ? reader.len : reader.pos + length,
95
+ message = new $root.DeviceCapabilities.DeviceCapabilities();
96
+ while (reader.pos < end) {
97
+ var tag = reader.uint32();
98
+ if (tag === error) break;
99
+ switch (tag >>> 3) {
100
+ case 1: {
101
+ message.chatLockSupportLevel = reader.int32();
102
+ break;
103
+ }
104
+ case 2: {
105
+ message.lidMigration =
106
+ $root.DeviceCapabilities.DeviceCapabilities.LIDMigration.decode(
107
+ reader,
108
+ reader.uint32()
109
+ );
110
+ break;
111
+ }
112
+ case 3: {
113
+ message.businessBroadcast =
114
+ $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.decode(
115
+ reader,
116
+ reader.uint32()
117
+ );
118
+ break;
119
+ }
120
+ case 4: {
121
+ message.userHasAvatar =
122
+ $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.decode(
123
+ reader,
124
+ reader.uint32()
125
+ );
126
+ break;
127
+ }
128
+ case 5: {
129
+ message.memberNameTagPrimarySupport = reader.int32();
130
+ break;
131
+ }
132
+ case 6: {
133
+ message.aiThread =
134
+ $root.DeviceCapabilities.DeviceCapabilities.AiThread.decode(
135
+ reader,
136
+ reader.uint32()
137
+ );
138
+ break;
139
+ }
140
+ default:
141
+ reader.skipType(tag & 7);
142
+ break;
143
+ }
144
+ }
145
+ return message;
146
+ };
147
+ DeviceCapabilities.decodeDelimited = function decodeDelimited(reader) {
148
+ if (!(reader instanceof $Reader)) reader = new $Reader(reader);
149
+ return this.decode(reader, reader.uint32());
150
+ };
151
+ DeviceCapabilities.verify = function verify(message) {
152
+ if (typeof message !== "object" || message === null) return "object expected";
153
+ var properties = {};
154
+ if (
155
+ message.chatLockSupportLevel != null &&
156
+ message.hasOwnProperty("chatLockSupportLevel")
157
+ ) {
158
+ properties._chatLockSupportLevel = 1;
159
+ switch (message.chatLockSupportLevel) {
160
+ default:
161
+ return "chatLockSupportLevel: enum value expected";
162
+ case 0:
163
+ case 1:
164
+ case 2:
165
+ break;
166
+ }
167
+ }
168
+ if (message.lidMigration != null && message.hasOwnProperty("lidMigration")) {
169
+ properties._lidMigration = 1;
170
+ {
171
+ var error = $root.DeviceCapabilities.DeviceCapabilities.LIDMigration.verify(
172
+ message.lidMigration
173
+ );
174
+ if (error) return "lidMigration." + error;
175
+ }
176
+ }
177
+ if (message.businessBroadcast != null && message.hasOwnProperty("businessBroadcast")) {
178
+ properties._businessBroadcast = 1;
179
+ {
180
+ var error =
181
+ $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.verify(
182
+ message.businessBroadcast
183
+ );
184
+ if (error) return "businessBroadcast." + error;
185
+ }
186
+ }
187
+ if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar")) {
188
+ properties._userHasAvatar = 1;
189
+ {
190
+ var error = $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.verify(
191
+ message.userHasAvatar
192
+ );
193
+ if (error) return "userHasAvatar." + error;
194
+ }
195
+ }
196
+ if (
197
+ message.memberNameTagPrimarySupport != null &&
198
+ message.hasOwnProperty("memberNameTagPrimarySupport")
199
+ ) {
200
+ properties._memberNameTagPrimarySupport = 1;
201
+ switch (message.memberNameTagPrimarySupport) {
202
+ default:
203
+ return "memberNameTagPrimarySupport: enum value expected";
204
+ case 0:
205
+ case 1:
206
+ case 2:
207
+ break;
208
+ }
209
+ }
210
+ if (message.aiThread != null && message.hasOwnProperty("aiThread")) {
211
+ properties._aiThread = 1;
212
+ {
213
+ var error = $root.DeviceCapabilities.DeviceCapabilities.AiThread.verify(
214
+ message.aiThread
215
+ );
216
+ if (error) return "aiThread." + error;
217
+ }
218
+ }
219
+ return null;
220
+ };
221
+ DeviceCapabilities.fromObject = function fromObject(object) {
222
+ if (object instanceof $root.DeviceCapabilities.DeviceCapabilities) return object;
223
+ var message = new $root.DeviceCapabilities.DeviceCapabilities();
224
+ switch (object.chatLockSupportLevel) {
225
+ default:
226
+ if (typeof object.chatLockSupportLevel === "number") {
227
+ message.chatLockSupportLevel = object.chatLockSupportLevel;
228
+ break;
229
+ }
230
+ break;
231
+ case "NONE":
232
+ case 0:
233
+ message.chatLockSupportLevel = 0;
234
+ break;
235
+ case "MINIMAL":
236
+ case 1:
237
+ message.chatLockSupportLevel = 1;
238
+ break;
239
+ case "FULL":
240
+ case 2:
241
+ message.chatLockSupportLevel = 2;
242
+ break;
243
+ }
244
+ if (object.lidMigration != null) {
245
+ if (typeof object.lidMigration !== "object")
246
+ throw TypeError(
247
+ ".DeviceCapabilities.DeviceCapabilities.lidMigration: object expected"
248
+ );
249
+ message.lidMigration =
250
+ $root.DeviceCapabilities.DeviceCapabilities.LIDMigration.fromObject(
251
+ object.lidMigration
252
+ );
253
+ }
254
+ if (object.businessBroadcast != null) {
255
+ if (typeof object.businessBroadcast !== "object")
256
+ throw TypeError(
257
+ ".DeviceCapabilities.DeviceCapabilities.businessBroadcast: object expected"
258
+ );
259
+ message.businessBroadcast =
260
+ $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.fromObject(
261
+ object.businessBroadcast
262
+ );
263
+ }
264
+ if (object.userHasAvatar != null) {
265
+ if (typeof object.userHasAvatar !== "object")
266
+ throw TypeError(
267
+ ".DeviceCapabilities.DeviceCapabilities.userHasAvatar: object expected"
268
+ );
269
+ message.userHasAvatar =
270
+ $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.fromObject(
271
+ object.userHasAvatar
272
+ );
273
+ }
274
+ switch (object.memberNameTagPrimarySupport) {
275
+ default:
276
+ if (typeof object.memberNameTagPrimarySupport === "number") {
277
+ message.memberNameTagPrimarySupport = object.memberNameTagPrimarySupport;
278
+ break;
279
+ }
280
+ break;
281
+ case "DISABLED":
282
+ case 0:
283
+ message.memberNameTagPrimarySupport = 0;
284
+ break;
285
+ case "RECEIVER_ENABLED":
286
+ case 1:
287
+ message.memberNameTagPrimarySupport = 1;
288
+ break;
289
+ case "SENDER_ENABLED":
290
+ case 2:
291
+ message.memberNameTagPrimarySupport = 2;
292
+ break;
293
+ }
294
+ if (object.aiThread != null) {
295
+ if (typeof object.aiThread !== "object")
296
+ throw TypeError(
297
+ ".DeviceCapabilities.DeviceCapabilities.aiThread: object expected"
298
+ );
299
+ message.aiThread = $root.DeviceCapabilities.DeviceCapabilities.AiThread.fromObject(
300
+ object.aiThread
301
+ );
302
+ }
303
+ return message;
304
+ };
305
+ DeviceCapabilities.toObject = function toObject(message, options) {
306
+ if (!options) options = {};
307
+ var object = {};
308
+ if (
309
+ message.chatLockSupportLevel != null &&
310
+ message.hasOwnProperty("chatLockSupportLevel")
311
+ ) {
312
+ object.chatLockSupportLevel =
313
+ options.enums === String
314
+ ? $root.DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel[
315
+ message.chatLockSupportLevel
316
+ ] === undefined
317
+ ? message.chatLockSupportLevel
318
+ : $root.DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel[
319
+ message.chatLockSupportLevel
320
+ ]
321
+ : message.chatLockSupportLevel;
322
+ if (options.oneofs) object._chatLockSupportLevel = "chatLockSupportLevel";
323
+ }
324
+ if (message.lidMigration != null && message.hasOwnProperty("lidMigration")) {
325
+ object.lidMigration =
326
+ $root.DeviceCapabilities.DeviceCapabilities.LIDMigration.toObject(
327
+ message.lidMigration,
328
+ options
329
+ );
330
+ if (options.oneofs) object._lidMigration = "lidMigration";
331
+ }
332
+ if (message.businessBroadcast != null && message.hasOwnProperty("businessBroadcast")) {
333
+ object.businessBroadcast =
334
+ $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.toObject(
335
+ message.businessBroadcast,
336
+ options
337
+ );
338
+ if (options.oneofs) object._businessBroadcast = "businessBroadcast";
339
+ }
340
+ if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar")) {
341
+ object.userHasAvatar =
342
+ $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.toObject(
343
+ message.userHasAvatar,
344
+ options
345
+ );
346
+ if (options.oneofs) object._userHasAvatar = "userHasAvatar";
347
+ }
348
+ if (
349
+ message.memberNameTagPrimarySupport != null &&
350
+ message.hasOwnProperty("memberNameTagPrimarySupport")
351
+ ) {
352
+ object.memberNameTagPrimarySupport =
353
+ options.enums === String
354
+ ? $root.DeviceCapabilities.DeviceCapabilities.MemberNameTagPrimarySupport[
355
+ message.memberNameTagPrimarySupport
356
+ ] === undefined
357
+ ? message.memberNameTagPrimarySupport
358
+ : $root.DeviceCapabilities.DeviceCapabilities
359
+ .MemberNameTagPrimarySupport[message.memberNameTagPrimarySupport]
360
+ : message.memberNameTagPrimarySupport;
361
+ if (options.oneofs)
362
+ object._memberNameTagPrimarySupport = "memberNameTagPrimarySupport";
363
+ }
364
+ if (message.aiThread != null && message.hasOwnProperty("aiThread")) {
365
+ object.aiThread = $root.DeviceCapabilities.DeviceCapabilities.AiThread.toObject(
366
+ message.aiThread,
367
+ options
368
+ );
369
+ if (options.oneofs) object._aiThread = "aiThread";
370
+ }
371
+ return object;
372
+ };
373
+ DeviceCapabilities.prototype.toJSON = function toJSON() {
374
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
375
+ };
376
+ DeviceCapabilities.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
377
+ if (typeUrlPrefix === undefined) {
378
+ typeUrlPrefix = "type.googleapis.com";
379
+ }
380
+ return typeUrlPrefix + "/DeviceCapabilities.DeviceCapabilities";
381
+ };
382
+ DeviceCapabilities.AiThread = (function () {
383
+ function AiThread(properties) {
384
+ if (properties)
385
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
386
+ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];
387
+ }
388
+ AiThread.prototype.supportLevel = null;
389
+ var $oneOfFields;
390
+ Object.defineProperty(AiThread.prototype, "_supportLevel", {
391
+ get: $util.oneOfGetter(($oneOfFields = ["supportLevel"])),
392
+ set: $util.oneOfSetter($oneOfFields),
393
+ });
394
+ AiThread.create = function create(properties) {
395
+ return new AiThread(properties);
396
+ };
397
+ AiThread.encode = function encode(message, writer) {
398
+ if (!writer) writer = $Writer.create();
399
+ if (
400
+ message.supportLevel != null &&
401
+ Object.hasOwnProperty.call(message, "supportLevel")
402
+ )
403
+ writer.uint32(8).int32(message.supportLevel);
404
+ return writer;
405
+ };
406
+ AiThread.encodeDelimited = function encodeDelimited(message, writer) {
407
+ return this.encode(message, writer).ldelim();
408
+ };
409
+ AiThread.decode = function decode(reader, length, error) {
410
+ if (!(reader instanceof $Reader)) reader = $Reader.create(reader);
411
+ var end = length === undefined ? reader.len : reader.pos + length,
412
+ message = new $root.DeviceCapabilities.DeviceCapabilities.AiThread();
413
+ while (reader.pos < end) {
414
+ var tag = reader.uint32();
415
+ if (tag === error) break;
416
+ switch (tag >>> 3) {
417
+ case 1: {
418
+ message.supportLevel = reader.int32();
419
+ break;
420
+ }
421
+ default:
422
+ reader.skipType(tag & 7);
423
+ break;
424
+ }
425
+ }
426
+ return message;
427
+ };
428
+ AiThread.decodeDelimited = function decodeDelimited(reader) {
429
+ if (!(reader instanceof $Reader)) reader = new $Reader(reader);
430
+ return this.decode(reader, reader.uint32());
431
+ };
432
+ AiThread.verify = function verify(message) {
433
+ if (typeof message !== "object" || message === null) return "object expected";
434
+ var properties = {};
435
+ if (message.supportLevel != null && message.hasOwnProperty("supportLevel")) {
436
+ properties._supportLevel = 1;
437
+ switch (message.supportLevel) {
438
+ default:
439
+ return "supportLevel: enum value expected";
440
+ case 0:
441
+ case 1:
442
+ case 2:
443
+ break;
444
+ }
445
+ }
446
+ return null;
447
+ };
448
+ AiThread.fromObject = function fromObject(object) {
449
+ if (object instanceof $root.DeviceCapabilities.DeviceCapabilities.AiThread)
450
+ return object;
451
+ var message = new $root.DeviceCapabilities.DeviceCapabilities.AiThread();
452
+ switch (object.supportLevel) {
453
+ default:
454
+ if (typeof object.supportLevel === "number") {
455
+ message.supportLevel = object.supportLevel;
456
+ break;
457
+ }
458
+ break;
459
+ case "NONE":
460
+ case 0:
461
+ message.supportLevel = 0;
462
+ break;
463
+ case "INFRA":
464
+ case 1:
465
+ message.supportLevel = 1;
466
+ break;
467
+ case "FULL":
468
+ case 2:
469
+ message.supportLevel = 2;
470
+ break;
471
+ }
472
+ return message;
473
+ };
474
+ AiThread.toObject = function toObject(message, options) {
475
+ if (!options) options = {};
476
+ var object = {};
477
+ if (message.supportLevel != null && message.hasOwnProperty("supportLevel")) {
478
+ object.supportLevel =
479
+ options.enums === String
480
+ ? $root.DeviceCapabilities.DeviceCapabilities.AiThread.SupportLevel[
481
+ message.supportLevel
482
+ ] === undefined
483
+ ? message.supportLevel
484
+ : $root.DeviceCapabilities.DeviceCapabilities.AiThread.SupportLevel[
485
+ message.supportLevel
486
+ ]
487
+ : message.supportLevel;
488
+ if (options.oneofs) object._supportLevel = "supportLevel";
489
+ }
490
+ return object;
491
+ };
492
+ AiThread.prototype.toJSON = function toJSON() {
493
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
494
+ };
495
+ AiThread.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
496
+ if (typeUrlPrefix === undefined) {
497
+ typeUrlPrefix = "type.googleapis.com";
498
+ }
499
+ return typeUrlPrefix + "/DeviceCapabilities.DeviceCapabilities.AiThread";
500
+ };
501
+ AiThread.SupportLevel = (function () {
502
+ var valuesById = {},
503
+ values = Object.create(valuesById);
504
+ values[(valuesById[0] = "NONE")] = 0;
505
+ values[(valuesById[1] = "INFRA")] = 1;
506
+ values[(valuesById[2] = "FULL")] = 2;
507
+ return values;
508
+ })();
509
+ return AiThread;
510
+ })();
511
+ DeviceCapabilities.BusinessBroadcast = (function () {
512
+ function BusinessBroadcast(properties) {
513
+ if (properties)
514
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
515
+ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];
516
+ }
517
+ BusinessBroadcast.prototype.importListEnabled = null;
518
+ var $oneOfFields;
519
+ Object.defineProperty(BusinessBroadcast.prototype, "_importListEnabled", {
520
+ get: $util.oneOfGetter(($oneOfFields = ["importListEnabled"])),
521
+ set: $util.oneOfSetter($oneOfFields),
522
+ });
523
+ BusinessBroadcast.create = function create(properties) {
524
+ return new BusinessBroadcast(properties);
525
+ };
526
+ BusinessBroadcast.encode = function encode(message, writer) {
527
+ if (!writer) writer = $Writer.create();
528
+ if (
529
+ message.importListEnabled != null &&
530
+ Object.hasOwnProperty.call(message, "importListEnabled")
531
+ )
532
+ writer.uint32(8).bool(message.importListEnabled);
533
+ return writer;
534
+ };
535
+ BusinessBroadcast.encodeDelimited = function encodeDelimited(message, writer) {
536
+ return this.encode(message, writer).ldelim();
537
+ };
538
+ BusinessBroadcast.decode = function decode(reader, length, error) {
539
+ if (!(reader instanceof $Reader)) reader = $Reader.create(reader);
540
+ var end = length === undefined ? reader.len : reader.pos + length,
541
+ message = new $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast();
542
+ while (reader.pos < end) {
543
+ var tag = reader.uint32();
544
+ if (tag === error) break;
545
+ switch (tag >>> 3) {
546
+ case 1: {
547
+ message.importListEnabled = reader.bool();
548
+ break;
549
+ }
550
+ default:
551
+ reader.skipType(tag & 7);
552
+ break;
553
+ }
554
+ }
555
+ return message;
556
+ };
557
+ BusinessBroadcast.decodeDelimited = function decodeDelimited(reader) {
558
+ if (!(reader instanceof $Reader)) reader = new $Reader(reader);
559
+ return this.decode(reader, reader.uint32());
560
+ };
561
+ BusinessBroadcast.verify = function verify(message) {
562
+ if (typeof message !== "object" || message === null) return "object expected";
563
+ var properties = {};
564
+ if (
565
+ message.importListEnabled != null &&
566
+ message.hasOwnProperty("importListEnabled")
567
+ ) {
568
+ properties._importListEnabled = 1;
569
+ if (typeof message.importListEnabled !== "boolean")
570
+ return "importListEnabled: boolean expected";
571
+ }
572
+ return null;
573
+ };
574
+ BusinessBroadcast.fromObject = function fromObject(object) {
575
+ if (object instanceof $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast)
576
+ return object;
577
+ var message = new $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast();
578
+ if (object.importListEnabled != null)
579
+ message.importListEnabled = Boolean(object.importListEnabled);
580
+ return message;
581
+ };
582
+ BusinessBroadcast.toObject = function toObject(message, options) {
583
+ if (!options) options = {};
584
+ var object = {};
585
+ if (
586
+ message.importListEnabled != null &&
587
+ message.hasOwnProperty("importListEnabled")
588
+ ) {
589
+ object.importListEnabled = message.importListEnabled;
590
+ if (options.oneofs) object._importListEnabled = "importListEnabled";
591
+ }
592
+ return object;
593
+ };
594
+ BusinessBroadcast.prototype.toJSON = function toJSON() {
595
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
596
+ };
597
+ BusinessBroadcast.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
598
+ if (typeUrlPrefix === undefined) {
599
+ typeUrlPrefix = "type.googleapis.com";
600
+ }
601
+ return typeUrlPrefix + "/DeviceCapabilities.DeviceCapabilities.BusinessBroadcast";
602
+ };
603
+ return BusinessBroadcast;
604
+ })();
605
+ DeviceCapabilities.ChatLockSupportLevel = (function () {
606
+ var valuesById = {},
607
+ values = Object.create(valuesById);
608
+ values[(valuesById[0] = "NONE")] = 0;
609
+ values[(valuesById[1] = "MINIMAL")] = 1;
610
+ values[(valuesById[2] = "FULL")] = 2;
611
+ return values;
612
+ })();
613
+ DeviceCapabilities.LIDMigration = (function () {
614
+ function LIDMigration(properties) {
615
+ if (properties)
616
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
617
+ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];
618
+ }
619
+ LIDMigration.prototype.chatDbMigrationTimestamp = null;
620
+ var $oneOfFields;
621
+ Object.defineProperty(LIDMigration.prototype, "_chatDbMigrationTimestamp", {
622
+ get: $util.oneOfGetter(($oneOfFields = ["chatDbMigrationTimestamp"])),
623
+ set: $util.oneOfSetter($oneOfFields),
624
+ });
625
+ LIDMigration.create = function create(properties) {
626
+ return new LIDMigration(properties);
627
+ };
628
+ LIDMigration.encode = function encode(message, writer) {
629
+ if (!writer) writer = $Writer.create();
630
+ if (
631
+ message.chatDbMigrationTimestamp != null &&
632
+ Object.hasOwnProperty.call(message, "chatDbMigrationTimestamp")
633
+ )
634
+ writer.uint32(8).uint64(message.chatDbMigrationTimestamp);
635
+ return writer;
636
+ };
637
+ LIDMigration.encodeDelimited = function encodeDelimited(message, writer) {
638
+ return this.encode(message, writer).ldelim();
639
+ };
640
+ LIDMigration.decode = function decode(reader, length, error) {
641
+ if (!(reader instanceof $Reader)) reader = $Reader.create(reader);
642
+ var end = length === undefined ? reader.len : reader.pos + length,
643
+ message = new $root.DeviceCapabilities.DeviceCapabilities.LIDMigration();
644
+ while (reader.pos < end) {
645
+ var tag = reader.uint32();
646
+ if (tag === error) break;
647
+ switch (tag >>> 3) {
648
+ case 1: {
649
+ message.chatDbMigrationTimestamp = reader.uint64();
650
+ break;
651
+ }
652
+ default:
653
+ reader.skipType(tag & 7);
654
+ break;
655
+ }
656
+ }
657
+ return message;
658
+ };
659
+ LIDMigration.decodeDelimited = function decodeDelimited(reader) {
660
+ if (!(reader instanceof $Reader)) reader = new $Reader(reader);
661
+ return this.decode(reader, reader.uint32());
662
+ };
663
+ LIDMigration.verify = function verify(message) {
664
+ if (typeof message !== "object" || message === null) return "object expected";
665
+ var properties = {};
666
+ if (
667
+ message.chatDbMigrationTimestamp != null &&
668
+ message.hasOwnProperty("chatDbMigrationTimestamp")
669
+ ) {
670
+ properties._chatDbMigrationTimestamp = 1;
671
+ if (
672
+ !$util.isInteger(message.chatDbMigrationTimestamp) &&
673
+ !(
674
+ message.chatDbMigrationTimestamp &&
675
+ $util.isInteger(message.chatDbMigrationTimestamp.low) &&
676
+ $util.isInteger(message.chatDbMigrationTimestamp.high)
677
+ )
678
+ )
679
+ return "chatDbMigrationTimestamp: integer|Long expected";
680
+ }
681
+ return null;
682
+ };
683
+ LIDMigration.fromObject = function fromObject(object) {
684
+ if (object instanceof $root.DeviceCapabilities.DeviceCapabilities.LIDMigration)
685
+ return object;
686
+ var message = new $root.DeviceCapabilities.DeviceCapabilities.LIDMigration();
687
+ if (object.chatDbMigrationTimestamp != null)
688
+ if ($util.Long)
689
+ (message.chatDbMigrationTimestamp = $util.Long.fromValue(
690
+ object.chatDbMigrationTimestamp
691
+ )).unsigned = true;
692
+ else if (typeof object.chatDbMigrationTimestamp === "string")
693
+ message.chatDbMigrationTimestamp = parseInt(
694
+ object.chatDbMigrationTimestamp,
695
+ 10
696
+ );
697
+ else if (typeof object.chatDbMigrationTimestamp === "number")
698
+ message.chatDbMigrationTimestamp = object.chatDbMigrationTimestamp;
699
+ else if (typeof object.chatDbMigrationTimestamp === "object")
700
+ message.chatDbMigrationTimestamp = new $util.LongBits(
701
+ object.chatDbMigrationTimestamp.low >>> 0,
702
+ object.chatDbMigrationTimestamp.high >>> 0
703
+ ).toNumber(true);
704
+ return message;
705
+ };
706
+ LIDMigration.toObject = function toObject(message, options) {
707
+ if (!options) options = {};
708
+ var object = {};
709
+ if (
710
+ message.chatDbMigrationTimestamp != null &&
711
+ message.hasOwnProperty("chatDbMigrationTimestamp")
712
+ ) {
713
+ if (typeof message.chatDbMigrationTimestamp === "number")
714
+ object.chatDbMigrationTimestamp =
715
+ options.longs === String
716
+ ? String(message.chatDbMigrationTimestamp)
717
+ : message.chatDbMigrationTimestamp;
718
+ else
719
+ object.chatDbMigrationTimestamp =
720
+ options.longs === String
721
+ ? $util.Long.prototype.toString.call(
722
+ message.chatDbMigrationTimestamp
723
+ )
724
+ : options.longs === Number
725
+ ? new $util.LongBits(
726
+ message.chatDbMigrationTimestamp.low >>> 0,
727
+ message.chatDbMigrationTimestamp.high >>> 0
728
+ ).toNumber(true)
729
+ : message.chatDbMigrationTimestamp;
730
+ if (options.oneofs)
731
+ object._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
732
+ }
733
+ return object;
734
+ };
735
+ LIDMigration.prototype.toJSON = function toJSON() {
736
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
737
+ };
738
+ LIDMigration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
739
+ if (typeUrlPrefix === undefined) {
740
+ typeUrlPrefix = "type.googleapis.com";
741
+ }
742
+ return typeUrlPrefix + "/DeviceCapabilities.DeviceCapabilities.LIDMigration";
743
+ };
744
+ return LIDMigration;
745
+ })();
746
+ DeviceCapabilities.MemberNameTagPrimarySupport = (function () {
747
+ var valuesById = {},
748
+ values = Object.create(valuesById);
749
+ values[(valuesById[0] = "DISABLED")] = 0;
750
+ values[(valuesById[1] = "RECEIVER_ENABLED")] = 1;
751
+ values[(valuesById[2] = "SENDER_ENABLED")] = 2;
752
+ return values;
753
+ })();
754
+ DeviceCapabilities.UserHasAvatar = (function () {
755
+ function UserHasAvatar(properties) {
756
+ if (properties)
757
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
758
+ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];
759
+ }
760
+ UserHasAvatar.prototype.userHasAvatar = null;
761
+ var $oneOfFields;
762
+ Object.defineProperty(UserHasAvatar.prototype, "_userHasAvatar", {
763
+ get: $util.oneOfGetter(($oneOfFields = ["userHasAvatar"])),
764
+ set: $util.oneOfSetter($oneOfFields),
765
+ });
766
+ UserHasAvatar.create = function create(properties) {
767
+ return new UserHasAvatar(properties);
768
+ };
769
+ UserHasAvatar.encode = function encode(message, writer) {
770
+ if (!writer) writer = $Writer.create();
771
+ if (
772
+ message.userHasAvatar != null &&
773
+ Object.hasOwnProperty.call(message, "userHasAvatar")
774
+ )
775
+ writer.uint32(8).bool(message.userHasAvatar);
776
+ return writer;
777
+ };
778
+ UserHasAvatar.encodeDelimited = function encodeDelimited(message, writer) {
779
+ return this.encode(message, writer).ldelim();
780
+ };
781
+ UserHasAvatar.decode = function decode(reader, length, error) {
782
+ if (!(reader instanceof $Reader)) reader = $Reader.create(reader);
783
+ var end = length === undefined ? reader.len : reader.pos + length,
784
+ message = new $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar();
785
+ while (reader.pos < end) {
786
+ var tag = reader.uint32();
787
+ if (tag === error) break;
788
+ switch (tag >>> 3) {
789
+ case 1: {
790
+ message.userHasAvatar = reader.bool();
791
+ break;
792
+ }
793
+ default:
794
+ reader.skipType(tag & 7);
795
+ break;
796
+ }
797
+ }
798
+ return message;
799
+ };
800
+ UserHasAvatar.decodeDelimited = function decodeDelimited(reader) {
801
+ if (!(reader instanceof $Reader)) reader = new $Reader(reader);
802
+ return this.decode(reader, reader.uint32());
803
+ };
804
+ UserHasAvatar.verify = function verify(message) {
805
+ if (typeof message !== "object" || message === null) return "object expected";
806
+ var properties = {};
807
+ if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar")) {
808
+ properties._userHasAvatar = 1;
809
+ if (typeof message.userHasAvatar !== "boolean")
810
+ return "userHasAvatar: boolean expected";
811
+ }
812
+ return null;
813
+ };
814
+ UserHasAvatar.fromObject = function fromObject(object) {
815
+ if (object instanceof $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar)
816
+ return object;
817
+ var message = new $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar();
818
+ if (object.userHasAvatar != null)
819
+ message.userHasAvatar = Boolean(object.userHasAvatar);
820
+ return message;
821
+ };
822
+ UserHasAvatar.toObject = function toObject(message, options) {
823
+ if (!options) options = {};
824
+ var object = {};
825
+ if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar")) {
826
+ object.userHasAvatar = message.userHasAvatar;
827
+ if (options.oneofs) object._userHasAvatar = "userHasAvatar";
828
+ }
829
+ return object;
830
+ };
831
+ UserHasAvatar.prototype.toJSON = function toJSON() {
832
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
833
+ };
834
+ UserHasAvatar.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
835
+ if (typeUrlPrefix === undefined) {
836
+ typeUrlPrefix = "type.googleapis.com";
837
+ }
838
+ return typeUrlPrefix + "/DeviceCapabilities.DeviceCapabilities.UserHasAvatar";
839
+ };
840
+ return UserHasAvatar;
841
+ })();
842
+ return DeviceCapabilities;
843
+ })();
844
+ return DeviceCapabilities;
845
+ })();
846
+ module.exports = $root;