vialeys 0.0.1 → 0.0.2
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.
- package/README.md +11 -5
- package/WAProto/AICommon/AICommon.js +13991 -9169
- package/WAProto/AICommon/AICommon.proto +110 -3
- package/WAProto/CompanionReg/CompanionReg.js +114 -0
- package/WAProto/CompanionReg/CompanionReg.proto +3 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.js +652 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +19 -0
- package/WAProto/E2E/E2E.js +77193 -51248
- package/WAProto/E2E/E2E.proto +68 -12
- package/WAProto/HistorySync/HistorySync.js +3375 -178
- package/WAProto/HistorySync/HistorySync.proto +3 -3
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +98 -49
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +2 -2
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +75226 -48422
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +6 -0
- package/WAProto/StatusAttributions/StatusAttributions.js +21 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +3 -0
- package/WAProto/SyncAction/SyncAction.js +9423 -2023
- package/WAProto/SyncAction/SyncAction.proto +208 -15
- package/WAProto/Wa6/Wa6.js +83 -0
- package/WAProto/Wa6/Wa6.proto +3 -0
- package/WAProto/Web/Web.js +92664 -63403
- package/WAProto/Web/Web.proto +31 -13
- package/engine-requirements.js +9 -7
- package/lib/Defaults/baileys-version.json +2 -2
- package/lib/Defaults/connection.js +51 -0
- package/lib/Defaults/constants.js +62 -0
- package/lib/Defaults/history.js +17 -0
- package/lib/Defaults/index.js +36 -142
- package/lib/Defaults/media.js +48 -0
- package/lib/Defaults/prefix.js +18 -0
- package/lib/Signal/Group/group-session-builder.js +10 -42
- package/lib/Signal/Group/group_cipher.js +9 -6
- package/lib/Signal/Group/index.js +39 -53
- package/lib/Signal/Group/keyhelper.js +8 -41
- package/lib/Signal/Group/sender-chain-key.js +4 -4
- package/lib/Signal/Group/sender-key-distribution-message.js +5 -5
- package/lib/Signal/Group/sender-key-message.js +12 -8
- package/lib/Signal/Group/sender-key-state.js +4 -4
- package/lib/Signal/Group/sender-message-key.js +2 -2
- package/lib/Signal/libsignal.js +45 -69
- package/lib/Signal/lid-mapping.js +15 -11
- package/lib/Socket/Client/types.js +2 -2
- package/lib/Socket/Client/websocket.js +16 -14
- package/lib/Socket/business.js +41 -32
- package/lib/Socket/chats.js +123 -98
- package/lib/Socket/community.js +50 -40
- package/lib/Socket/groups.js +59 -47
- package/lib/Socket/index.js +4 -4
- package/lib/Socket/messages-recv.js +226 -171
- package/lib/Socket/messages-send.js +187 -143
- package/lib/Socket/newsletter.js +61 -47
- package/lib/Socket/socket.js +133 -90
- package/lib/Socket/usync.js +6 -6
- package/lib/Store/index.js +27 -11
- package/lib/Store/make-cache-manager-store.js +14 -15
- package/lib/Store/make-in-memory-store.js +28 -24
- package/lib/Types/LabelAssociation.js +2 -2
- package/lib/Types/Message.js +6 -6
- package/lib/Types/MexUpdates.js +5 -4
- package/lib/Types/State.js +4 -4
- package/lib/Types/index.js +28 -12
- package/lib/Utils/auth-utils.js +28 -26
- package/lib/Utils/baileys-event-stream.js +68 -69
- package/lib/Utils/business.js +63 -53
- package/lib/Utils/chat-utils.js +81 -71
- package/lib/Utils/crypto.js +25 -45
- package/lib/Utils/decode-wa-message.js +319 -311
- package/lib/Utils/event-buffer.js +21 -22
- package/lib/Utils/generics.js +103 -73
- package/lib/Utils/history.js +21 -21
- package/lib/Utils/index.js +27 -13
- package/lib/Utils/link-preview.js +7 -30
- package/lib/Utils/logger.js +5 -5
- package/lib/Utils/lt-hash.js +3 -3
- package/lib/Utils/message-retry-manager.js +4 -4
- package/lib/Utils/messages-media.js +104 -109
- package/lib/Utils/messages.js +203 -171
- package/lib/Utils/noise-handler.js +28 -19
- package/lib/Utils/process-message.js +370 -136
- package/lib/Utils/signal.js +36 -25
- package/lib/Utils/use-multi-file-auth-state.js +18 -22
- package/lib/Utils/validate-connection.js +52 -45
- package/lib/WABinary/decode.js +6 -32
- package/lib/WABinary/encode.js +3 -29
- package/lib/WABinary/generic-utils.js +4 -4
- package/lib/WABinary/index.js +27 -11
- package/lib/WAM/encode.js +16 -8
- package/lib/WAM/index.js +27 -11
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
- package/lib/WAUSync/Protocols/index.js +27 -11
- package/lib/WAUSync/USyncQuery.js +17 -10
- package/lib/WAUSync/index.js +27 -11
- package/lib/index.js +62 -37
- package/package.json +1 -1
- package/WAProto/index.d.ts +0 -55
- package/lib/index.d.ts +0 -13
|
@@ -1,8 +1,48 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package AICommon;
|
|
3
3
|
|
|
4
|
-
import "../StatusAttributions/StatusAttributions.proto";
|
|
5
4
|
import "../Protocol/Protocol.proto";
|
|
5
|
+
import "../StatusAttributions/StatusAttributions.proto";
|
|
6
|
+
|
|
7
|
+
message AIHomeState {
|
|
8
|
+
optional int64 lastFetchTime = 1;
|
|
9
|
+
repeated AIHomeOption capabilityOptions = 2;
|
|
10
|
+
repeated AIHomeOption conversationOptions = 3;
|
|
11
|
+
message AIHomeOption {
|
|
12
|
+
optional AIHomeActionType type = 1;
|
|
13
|
+
optional string title = 2;
|
|
14
|
+
optional string promptText = 3;
|
|
15
|
+
optional string sessionId = 4;
|
|
16
|
+
optional string imageWdsIdentifier = 5;
|
|
17
|
+
optional string imageTintColor = 6;
|
|
18
|
+
optional string imageBackgroundColor = 7;
|
|
19
|
+
enum AIHomeActionType {
|
|
20
|
+
PROMPT = 0;
|
|
21
|
+
CREATE_IMAGE = 1;
|
|
22
|
+
ANIMATE_PHOTO = 2;
|
|
23
|
+
ANALYZE_FILE = 3;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message BotDocumentMessageMetadata {
|
|
29
|
+
optional DocumentPluginType pluginType = 1;
|
|
30
|
+
enum DocumentPluginType {
|
|
31
|
+
TEXT_EXTRACTION = 0;
|
|
32
|
+
OCR_AND_IMAGES = 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message SessionTransparencyMetadata {
|
|
37
|
+
optional string disclaimerText = 1;
|
|
38
|
+
optional string hcaId = 2;
|
|
39
|
+
optional SessionTransparencyType sessionTransparencyType = 3;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message AIRegenerateMetadata {
|
|
43
|
+
optional Protocol.MessageKey messageKey = 1;
|
|
44
|
+
optional int64 responseTimestampMs = 2;
|
|
45
|
+
}
|
|
6
46
|
|
|
7
47
|
message AIRichResponseSubMessage {
|
|
8
48
|
optional AIRichResponseSubMessageType messageType = 1;
|
|
@@ -134,6 +174,11 @@ message AIRichResponseImageURL {
|
|
|
134
174
|
optional string sourceUrl = 3;
|
|
135
175
|
}
|
|
136
176
|
|
|
177
|
+
message BotMessageSharingInfo {
|
|
178
|
+
optional BotMetricsEntryPoint botEntryPointOrigin = 1;
|
|
179
|
+
optional uint32 forwardScore = 2;
|
|
180
|
+
}
|
|
181
|
+
|
|
137
182
|
message ForwardedAIBotMessageInfo {
|
|
138
183
|
optional string botName = 1;
|
|
139
184
|
optional string botJid = 2;
|
|
@@ -192,13 +237,50 @@ message BotFeedbackMessage {
|
|
|
192
237
|
optional bool isSelectedResponsePrimary = 6;
|
|
193
238
|
optional string messageIdToEdit = 7;
|
|
194
239
|
optional SideBySideSurveyAnalyticsData analyticsData = 8;
|
|
240
|
+
optional SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;
|
|
195
241
|
message SideBySideSurveyAnalyticsData {
|
|
196
242
|
optional string tessaEvent = 1;
|
|
197
243
|
optional string tessaSessionFbid = 2;
|
|
244
|
+
optional string simonSessionFbid = 3;
|
|
245
|
+
}
|
|
246
|
+
message SidebySideSurveyMetaAiAnalyticsData {
|
|
247
|
+
optional uint32 surveyId = 1;
|
|
248
|
+
optional string primaryResponseId = 2;
|
|
249
|
+
optional string testArmName = 3;
|
|
250
|
+
optional string timestampMsString = 4;
|
|
251
|
+
optional SideBySideSurveyCTAImpressionEventData ctaImpressionEvent = 5;
|
|
252
|
+
optional SideBySideSurveyCTAClickEventData ctaClickEvent = 6;
|
|
253
|
+
optional SideBySideSurveyCardImpressionEventData cardImpressionEvent = 7;
|
|
254
|
+
optional SideBySideSurveyResponseEventData responseEvent = 8;
|
|
255
|
+
optional SideBySideSurveyAbandonEventData abandonEvent = 9;
|
|
256
|
+
message SideBySideSurveyAbandonEventData {
|
|
257
|
+
optional string abandonDwellTimeMsString = 1;
|
|
258
|
+
}
|
|
259
|
+
message SideBySideSurveyCTAClickEventData {
|
|
260
|
+
optional bool isSurveyExpired = 1;
|
|
261
|
+
optional string clickDwellTimeMsString = 2;
|
|
262
|
+
}
|
|
263
|
+
message SideBySideSurveyCTAImpressionEventData {
|
|
264
|
+
optional bool isSurveyExpired = 1;
|
|
265
|
+
}
|
|
266
|
+
message SideBySideSurveyCardImpressionEventData {
|
|
267
|
+
}
|
|
268
|
+
message SideBySideSurveyResponseEventData {
|
|
269
|
+
optional string responseDwellTimeMsString = 1;
|
|
270
|
+
optional string selectedResponseId = 2;
|
|
271
|
+
}
|
|
198
272
|
}
|
|
199
273
|
}
|
|
200
274
|
}
|
|
201
275
|
|
|
276
|
+
message BotGroupParticipantMetadata {
|
|
277
|
+
optional string botFbid = 1;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
message BotGroupMetadata {
|
|
281
|
+
repeated BotGroupParticipantMetadata participantsMetadata = 1;
|
|
282
|
+
}
|
|
283
|
+
|
|
202
284
|
message BotMetadata {
|
|
203
285
|
optional BotAvatarMetadata avatarMetadata = 1;
|
|
204
286
|
optional string personaId = 2;
|
|
@@ -231,6 +313,10 @@ message BotMetadata {
|
|
|
231
313
|
optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
|
|
232
314
|
optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
|
|
233
315
|
optional AIThreadInfo botThreadInfo = 31;
|
|
316
|
+
optional AIRegenerateMetadata regenerateMetadata = 32;
|
|
317
|
+
optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
|
|
318
|
+
optional BotDocumentMessageMetadata botDocumentMessageMetadata = 34;
|
|
319
|
+
optional BotGroupMetadata botGroupMetadata = 35;
|
|
234
320
|
optional bytes internalMetadata = 999;
|
|
235
321
|
}
|
|
236
322
|
|
|
@@ -260,6 +346,7 @@ message BotUnifiedResponseMutation {
|
|
|
260
346
|
}
|
|
261
347
|
message SideBySideMetadata {
|
|
262
348
|
optional string primaryResponseId = 1;
|
|
349
|
+
optional bool surveyCtaHasRendered = 2;
|
|
263
350
|
}
|
|
264
351
|
}
|
|
265
352
|
|
|
@@ -292,6 +379,7 @@ message InThreadSurveyMetadata {
|
|
|
292
379
|
optional string privacyStatementFull = 15;
|
|
293
380
|
repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
|
|
294
381
|
optional string feedbackToastText = 17;
|
|
382
|
+
optional int32 startQuestionIndex = 18;
|
|
295
383
|
message InThreadSurveyOption {
|
|
296
384
|
optional string stringValue = 1;
|
|
297
385
|
optional uint32 numericValue = 2;
|
|
@@ -331,6 +419,11 @@ message BotSourcesMetadata {
|
|
|
331
419
|
message BotAgeCollectionMetadata {
|
|
332
420
|
optional bool ageCollectionEligible = 1;
|
|
333
421
|
optional bool shouldTriggerAgeCollectionOnClient = 2;
|
|
422
|
+
optional AgeCollectionType ageCollectionType = 3;
|
|
423
|
+
enum AgeCollectionType {
|
|
424
|
+
O18_BINARY = 0;
|
|
425
|
+
WAFFLE = 1;
|
|
426
|
+
}
|
|
334
427
|
}
|
|
335
428
|
|
|
336
429
|
message BotImagineMetadata {
|
|
@@ -414,6 +507,10 @@ message BotCapabilityMetadata {
|
|
|
414
507
|
RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
|
|
415
508
|
RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
|
|
416
509
|
RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
|
|
510
|
+
RICH_RESPONSE_IN_APP_SURVEY = 46;
|
|
511
|
+
AI_RESPONSE_MODEL_BRANDING = 47;
|
|
512
|
+
SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
|
|
513
|
+
RICH_RESPONSE_UR_REASONING = 49;
|
|
417
514
|
}
|
|
418
515
|
}
|
|
419
516
|
|
|
@@ -468,6 +565,7 @@ message BotProgressIndicatorMetadata {
|
|
|
468
565
|
message BotModelMetadata {
|
|
469
566
|
optional ModelType modelType = 1;
|
|
470
567
|
optional PremiumModelStatus premiumModelStatus = 2;
|
|
568
|
+
optional string modelNameOverride = 3;
|
|
471
569
|
enum ModelType {
|
|
472
570
|
UNKNOWN_TYPE = 0;
|
|
473
571
|
LLAMA_PROD = 1;
|
|
@@ -638,6 +736,11 @@ message BotAvatarMetadata {
|
|
|
638
736
|
optional uint32 wordCount = 5;
|
|
639
737
|
}
|
|
640
738
|
|
|
739
|
+
enum SessionTransparencyType {
|
|
740
|
+
UNKNOWN_TYPE = 0;
|
|
741
|
+
NY_AI_SAFETY_DISCLAIMER = 1;
|
|
742
|
+
}
|
|
743
|
+
|
|
641
744
|
enum AIRichResponseSubMessageType {
|
|
642
745
|
AI_RICH_RESPONSE_UNKNOWN = 0;
|
|
643
746
|
AI_RICH_RESPONSE_GRID_IMAGE = 1;
|
|
@@ -708,6 +811,10 @@ enum BotMetricsEntryPoint {
|
|
|
708
811
|
INVOKE_META_AI_GROUP = 30;
|
|
709
812
|
META_AI_FORWARD = 31;
|
|
710
813
|
NEW_CHAT_AI_CONTACT = 32;
|
|
711
|
-
|
|
712
|
-
|
|
814
|
+
MESSAGE_QUICK_ACTION_1_ON_1_CHAT = 33;
|
|
815
|
+
MESSAGE_QUICK_ACTION_GROUP_CHAT = 34;
|
|
816
|
+
ATTACHMENT_TRAY_1_ON_1_CHAT = 35;
|
|
817
|
+
ATTACHMENT_TRAY_GROUP_CHAT = 36;
|
|
818
|
+
ASK_META_AI_MEDIA_VIEWER_1ON1 = 37;
|
|
819
|
+
ASK_META_AI_MEDIA_VIEWER_GROUP = 38;
|
|
713
820
|
}
|
|
@@ -27,6 +27,7 @@ $root.CompanionReg = (function() {
|
|
|
27
27
|
* @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
|
|
28
28
|
* @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
|
|
29
29
|
* @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
|
|
30
|
+
* @property {boolean|null} [isHsThumbnailSyncEnabled] ClientPairingProps isHsThumbnailSyncEnabled
|
|
30
31
|
*/
|
|
31
32
|
|
|
32
33
|
/**
|
|
@@ -68,6 +69,14 @@ $root.CompanionReg = (function() {
|
|
|
68
69
|
*/
|
|
69
70
|
ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
|
|
70
71
|
|
|
72
|
+
/**
|
|
73
|
+
* ClientPairingProps isHsThumbnailSyncEnabled.
|
|
74
|
+
* @member {boolean|null|undefined} isHsThumbnailSyncEnabled
|
|
75
|
+
* @memberof CompanionReg.ClientPairingProps
|
|
76
|
+
* @instance
|
|
77
|
+
*/
|
|
78
|
+
ClientPairingProps.prototype.isHsThumbnailSyncEnabled = null;
|
|
79
|
+
|
|
71
80
|
// OneOf field names bound to virtual getters and setters
|
|
72
81
|
var $oneOfFields;
|
|
73
82
|
|
|
@@ -104,6 +113,17 @@ $root.CompanionReg = (function() {
|
|
|
104
113
|
set: $util.oneOfSetter($oneOfFields)
|
|
105
114
|
});
|
|
106
115
|
|
|
116
|
+
/**
|
|
117
|
+
* ClientPairingProps _isHsThumbnailSyncEnabled.
|
|
118
|
+
* @member {"isHsThumbnailSyncEnabled"|undefined} _isHsThumbnailSyncEnabled
|
|
119
|
+
* @memberof CompanionReg.ClientPairingProps
|
|
120
|
+
* @instance
|
|
121
|
+
*/
|
|
122
|
+
Object.defineProperty(ClientPairingProps.prototype, "_isHsThumbnailSyncEnabled", {
|
|
123
|
+
get: $util.oneOfGetter($oneOfFields = ["isHsThumbnailSyncEnabled"]),
|
|
124
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
125
|
+
});
|
|
126
|
+
|
|
107
127
|
/**
|
|
108
128
|
* Creates a new ClientPairingProps instance using the specified properties.
|
|
109
129
|
* @function create
|
|
@@ -134,6 +154,8 @@ $root.CompanionReg = (function() {
|
|
|
134
154
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
|
|
135
155
|
if (message.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(message, "isSyncdSnapshotRecoveryEnabled"))
|
|
136
156
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSyncdSnapshotRecoveryEnabled);
|
|
157
|
+
if (message.isHsThumbnailSyncEnabled != null && Object.hasOwnProperty.call(message, "isHsThumbnailSyncEnabled"))
|
|
158
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHsThumbnailSyncEnabled);
|
|
137
159
|
return writer;
|
|
138
160
|
};
|
|
139
161
|
|
|
@@ -182,6 +204,10 @@ $root.CompanionReg = (function() {
|
|
|
182
204
|
message.isSyncdSnapshotRecoveryEnabled = reader.bool();
|
|
183
205
|
break;
|
|
184
206
|
}
|
|
207
|
+
case 4: {
|
|
208
|
+
message.isHsThumbnailSyncEnabled = reader.bool();
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
185
211
|
default:
|
|
186
212
|
reader.skipType(tag & 7);
|
|
187
213
|
break;
|
|
@@ -233,6 +259,11 @@ $root.CompanionReg = (function() {
|
|
|
233
259
|
if (typeof message.isSyncdSnapshotRecoveryEnabled !== "boolean")
|
|
234
260
|
return "isSyncdSnapshotRecoveryEnabled: boolean expected";
|
|
235
261
|
}
|
|
262
|
+
if (message.isHsThumbnailSyncEnabled != null && message.hasOwnProperty("isHsThumbnailSyncEnabled")) {
|
|
263
|
+
properties._isHsThumbnailSyncEnabled = 1;
|
|
264
|
+
if (typeof message.isHsThumbnailSyncEnabled !== "boolean")
|
|
265
|
+
return "isHsThumbnailSyncEnabled: boolean expected";
|
|
266
|
+
}
|
|
236
267
|
return null;
|
|
237
268
|
};
|
|
238
269
|
|
|
@@ -254,6 +285,8 @@ $root.CompanionReg = (function() {
|
|
|
254
285
|
message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
|
|
255
286
|
if (object.isSyncdSnapshotRecoveryEnabled != null)
|
|
256
287
|
message.isSyncdSnapshotRecoveryEnabled = Boolean(object.isSyncdSnapshotRecoveryEnabled);
|
|
288
|
+
if (object.isHsThumbnailSyncEnabled != null)
|
|
289
|
+
message.isHsThumbnailSyncEnabled = Boolean(object.isHsThumbnailSyncEnabled);
|
|
257
290
|
return message;
|
|
258
291
|
};
|
|
259
292
|
|
|
@@ -285,6 +318,11 @@ $root.CompanionReg = (function() {
|
|
|
285
318
|
if (options.oneofs)
|
|
286
319
|
object._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled";
|
|
287
320
|
}
|
|
321
|
+
if (message.isHsThumbnailSyncEnabled != null && message.hasOwnProperty("isHsThumbnailSyncEnabled")) {
|
|
322
|
+
object.isHsThumbnailSyncEnabled = message.isHsThumbnailSyncEnabled;
|
|
323
|
+
if (options.oneofs)
|
|
324
|
+
object._isHsThumbnailSyncEnabled = "isHsThumbnailSyncEnabled";
|
|
325
|
+
}
|
|
288
326
|
return object;
|
|
289
327
|
};
|
|
290
328
|
|
|
@@ -3007,6 +3045,8 @@ $root.CompanionReg = (function() {
|
|
|
3007
3045
|
* @property {boolean|null} [supportGroupHistory] HistorySyncConfig supportGroupHistory
|
|
3008
3046
|
* @property {boolean|null} [onDemandReady] HistorySyncConfig onDemandReady
|
|
3009
3047
|
* @property {boolean|null} [supportGuestChat] HistorySyncConfig supportGuestChat
|
|
3048
|
+
* @property {boolean|null} [completeOnDemandReady] HistorySyncConfig completeOnDemandReady
|
|
3049
|
+
* @property {number|null} [thumbnailSyncDaysLimit] HistorySyncConfig thumbnailSyncDaysLimit
|
|
3010
3050
|
*/
|
|
3011
3051
|
|
|
3012
3052
|
/**
|
|
@@ -3160,6 +3200,22 @@ $root.CompanionReg = (function() {
|
|
|
3160
3200
|
*/
|
|
3161
3201
|
HistorySyncConfig.prototype.supportGuestChat = null;
|
|
3162
3202
|
|
|
3203
|
+
/**
|
|
3204
|
+
* HistorySyncConfig completeOnDemandReady.
|
|
3205
|
+
* @member {boolean|null|undefined} completeOnDemandReady
|
|
3206
|
+
* @memberof CompanionReg.DeviceProps.HistorySyncConfig
|
|
3207
|
+
* @instance
|
|
3208
|
+
*/
|
|
3209
|
+
HistorySyncConfig.prototype.completeOnDemandReady = null;
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* HistorySyncConfig thumbnailSyncDaysLimit.
|
|
3213
|
+
* @member {number|null|undefined} thumbnailSyncDaysLimit
|
|
3214
|
+
* @memberof CompanionReg.DeviceProps.HistorySyncConfig
|
|
3215
|
+
* @instance
|
|
3216
|
+
*/
|
|
3217
|
+
HistorySyncConfig.prototype.thumbnailSyncDaysLimit = null;
|
|
3218
|
+
|
|
3163
3219
|
// OneOf field names bound to virtual getters and setters
|
|
3164
3220
|
var $oneOfFields;
|
|
3165
3221
|
|
|
@@ -3350,6 +3406,28 @@ $root.CompanionReg = (function() {
|
|
|
3350
3406
|
set: $util.oneOfSetter($oneOfFields)
|
|
3351
3407
|
});
|
|
3352
3408
|
|
|
3409
|
+
/**
|
|
3410
|
+
* HistorySyncConfig _completeOnDemandReady.
|
|
3411
|
+
* @member {"completeOnDemandReady"|undefined} _completeOnDemandReady
|
|
3412
|
+
* @memberof CompanionReg.DeviceProps.HistorySyncConfig
|
|
3413
|
+
* @instance
|
|
3414
|
+
*/
|
|
3415
|
+
Object.defineProperty(HistorySyncConfig.prototype, "_completeOnDemandReady", {
|
|
3416
|
+
get: $util.oneOfGetter($oneOfFields = ["completeOnDemandReady"]),
|
|
3417
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3418
|
+
});
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* HistorySyncConfig _thumbnailSyncDaysLimit.
|
|
3422
|
+
* @member {"thumbnailSyncDaysLimit"|undefined} _thumbnailSyncDaysLimit
|
|
3423
|
+
* @memberof CompanionReg.DeviceProps.HistorySyncConfig
|
|
3424
|
+
* @instance
|
|
3425
|
+
*/
|
|
3426
|
+
Object.defineProperty(HistorySyncConfig.prototype, "_thumbnailSyncDaysLimit", {
|
|
3427
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailSyncDaysLimit"]),
|
|
3428
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3429
|
+
});
|
|
3430
|
+
|
|
3353
3431
|
/**
|
|
3354
3432
|
* Creates a new HistorySyncConfig instance using the specified properties.
|
|
3355
3433
|
* @function create
|
|
@@ -3408,6 +3486,10 @@ $root.CompanionReg = (function() {
|
|
|
3408
3486
|
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.onDemandReady);
|
|
3409
3487
|
if (message.supportGuestChat != null && Object.hasOwnProperty.call(message, "supportGuestChat"))
|
|
3410
3488
|
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.supportGuestChat);
|
|
3489
|
+
if (message.completeOnDemandReady != null && Object.hasOwnProperty.call(message, "completeOnDemandReady"))
|
|
3490
|
+
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.completeOnDemandReady);
|
|
3491
|
+
if (message.thumbnailSyncDaysLimit != null && Object.hasOwnProperty.call(message, "thumbnailSyncDaysLimit"))
|
|
3492
|
+
writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.thumbnailSyncDaysLimit);
|
|
3411
3493
|
return writer;
|
|
3412
3494
|
};
|
|
3413
3495
|
|
|
@@ -3512,6 +3594,14 @@ $root.CompanionReg = (function() {
|
|
|
3512
3594
|
message.supportGuestChat = reader.bool();
|
|
3513
3595
|
break;
|
|
3514
3596
|
}
|
|
3597
|
+
case 18: {
|
|
3598
|
+
message.completeOnDemandReady = reader.bool();
|
|
3599
|
+
break;
|
|
3600
|
+
}
|
|
3601
|
+
case 19: {
|
|
3602
|
+
message.thumbnailSyncDaysLimit = reader.uint32();
|
|
3603
|
+
break;
|
|
3604
|
+
}
|
|
3515
3605
|
default:
|
|
3516
3606
|
reader.skipType(tag & 7);
|
|
3517
3607
|
break;
|
|
@@ -3633,6 +3723,16 @@ $root.CompanionReg = (function() {
|
|
|
3633
3723
|
if (typeof message.supportGuestChat !== "boolean")
|
|
3634
3724
|
return "supportGuestChat: boolean expected";
|
|
3635
3725
|
}
|
|
3726
|
+
if (message.completeOnDemandReady != null && message.hasOwnProperty("completeOnDemandReady")) {
|
|
3727
|
+
properties._completeOnDemandReady = 1;
|
|
3728
|
+
if (typeof message.completeOnDemandReady !== "boolean")
|
|
3729
|
+
return "completeOnDemandReady: boolean expected";
|
|
3730
|
+
}
|
|
3731
|
+
if (message.thumbnailSyncDaysLimit != null && message.hasOwnProperty("thumbnailSyncDaysLimit")) {
|
|
3732
|
+
properties._thumbnailSyncDaysLimit = 1;
|
|
3733
|
+
if (!$util.isInteger(message.thumbnailSyncDaysLimit))
|
|
3734
|
+
return "thumbnailSyncDaysLimit: integer expected";
|
|
3735
|
+
}
|
|
3636
3736
|
return null;
|
|
3637
3737
|
};
|
|
3638
3738
|
|
|
@@ -3682,6 +3782,10 @@ $root.CompanionReg = (function() {
|
|
|
3682
3782
|
message.onDemandReady = Boolean(object.onDemandReady);
|
|
3683
3783
|
if (object.supportGuestChat != null)
|
|
3684
3784
|
message.supportGuestChat = Boolean(object.supportGuestChat);
|
|
3785
|
+
if (object.completeOnDemandReady != null)
|
|
3786
|
+
message.completeOnDemandReady = Boolean(object.completeOnDemandReady);
|
|
3787
|
+
if (object.thumbnailSyncDaysLimit != null)
|
|
3788
|
+
message.thumbnailSyncDaysLimit = object.thumbnailSyncDaysLimit >>> 0;
|
|
3685
3789
|
return message;
|
|
3686
3790
|
};
|
|
3687
3791
|
|
|
@@ -3783,6 +3887,16 @@ $root.CompanionReg = (function() {
|
|
|
3783
3887
|
if (options.oneofs)
|
|
3784
3888
|
object._supportGuestChat = "supportGuestChat";
|
|
3785
3889
|
}
|
|
3890
|
+
if (message.completeOnDemandReady != null && message.hasOwnProperty("completeOnDemandReady")) {
|
|
3891
|
+
object.completeOnDemandReady = message.completeOnDemandReady;
|
|
3892
|
+
if (options.oneofs)
|
|
3893
|
+
object._completeOnDemandReady = "completeOnDemandReady";
|
|
3894
|
+
}
|
|
3895
|
+
if (message.thumbnailSyncDaysLimit != null && message.hasOwnProperty("thumbnailSyncDaysLimit")) {
|
|
3896
|
+
object.thumbnailSyncDaysLimit = message.thumbnailSyncDaysLimit;
|
|
3897
|
+
if (options.oneofs)
|
|
3898
|
+
object._thumbnailSyncDaysLimit = "thumbnailSyncDaysLimit";
|
|
3899
|
+
}
|
|
3786
3900
|
return object;
|
|
3787
3901
|
};
|
|
3788
3902
|
|
|
@@ -5,6 +5,7 @@ message ClientPairingProps {
|
|
|
5
5
|
optional bool isChatDbLidMigrated = 1;
|
|
6
6
|
optional bool isSyncdPureLidSession = 2;
|
|
7
7
|
optional bool isSyncdSnapshotRecoveryEnabled = 3;
|
|
8
|
+
optional bool isHsThumbnailSyncEnabled = 4;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
message EncryptedPairingRequest {
|
|
@@ -69,6 +70,8 @@ message DeviceProps {
|
|
|
69
70
|
optional bool supportGroupHistory = 15;
|
|
70
71
|
optional bool onDemandReady = 16;
|
|
71
72
|
optional bool supportGuestChat = 17;
|
|
73
|
+
optional bool completeOnDemandReady = 18;
|
|
74
|
+
optional uint32 thumbnailSyncDaysLimit = 19;
|
|
72
75
|
}
|
|
73
76
|
enum PlatformType {
|
|
74
77
|
UNKNOWN = 0;
|