@jkt48connect-corp/baileys 7.4.5 → 7.4.9
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/WAProto/CompanionReg/CompanionReg.d.ts +6 -0
- package/WAProto/CompanionReg/CompanionReg.js +36 -0
- package/WAProto/CompanionReg/CompanionReg.proto +1 -0
- package/WAProto/E2E/E2E.d.ts +434 -6
- package/WAProto/E2E/E2E.js +1427 -2
- package/WAProto/E2E/E2E.proto +33 -0
- package/WAProto/HistorySync/HistorySync.d.ts +434 -6
- package/WAProto/HistorySync/HistorySync.js +1427 -2
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +434 -6
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1427 -2
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +95 -3
- package/WAProto/StatusAttributions/StatusAttributions.js +270 -2
- package/WAProto/StatusAttributions/StatusAttributions.proto +8 -0
- package/WAProto/Web/Web.d.ts +434 -6
- package/WAProto/Web/Web.js +1427 -2
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Socket/business.js +3 -3
- package/lib/Socket/chats.js +7 -7
- package/lib/Socket/groups.js +11 -9
- package/lib/Socket/messages-recv.js +12 -11
- package/lib/Socket/messages-send.js +981 -983
- package/lib/Socket/newsletter.js +3 -3
- package/lib/Socket/socket.js +13 -47
- package/lib/Socket/usync.js +3 -3
- package/lib/Store/make-cache-manager-store.js +9 -17
- package/lib/Store/make-in-memory-store.d.ts +2 -2
- package/lib/Store/make-in-memory-store.js +5 -5
- package/lib/Types/GroupMetadata.d.ts +2 -1
- package/lib/Utils/business.js +4 -0
- package/lib/Utils/decode-wa-message.js +4 -0
- package/lib/Utils/generics.js +10 -9
- package/lib/Utils/messages.js +1329 -1326
- package/lib/Utils/process-message.js +14 -1
- package/lib/index.js +1 -1
- package/package.json +5 -6
- package/WAProto/Adv/JKT48Connect - Valzyy +0 -0
- package/WAProto/Cert/JKT48Connect - Valzyy +0 -0
- package/WAProto/ChatLockSettings/JKT48Connect - Valzyy +0 -0
- package/WAProto/CompanionReg/JKT48Connect - Valzyy +0 -0
- package/WAProto/DeviceCapabilities/JKT48Connect - Valzyy +0 -0
- package/WAProto/E2E/JKT48Connect - Valzyy +0 -0
- package/WAProto/Ephemeral/JKT48Connect - Valzyy +0 -0
- package/WAProto/HistorySync/JKT48Connect - Valzyy +0 -0
- package/WAProto/JKT48Connect - Valzyy +0 -0
- package/WAProto/MdStorageChatRowOpaqueData/JKT48Connect - Valzyy +0 -0
- package/WAProto/MdStorageMsgRowOpaqueData/JKT48Connect - Valzyy +0 -0
- package/WAProto/MmsRetry/JKT48Connect - Valzyy +0 -0
- package/WAProto/Protocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/Reporting/JKT48Connect - Valzyy +0 -0
- package/WAProto/ServerSync/JKT48Connect - Valzyy +0 -0
- package/WAProto/SignalLocalStorageProtocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/SignalWhisperTextProtocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/StatusAttributions/JKT48Connect - Valzyy +0 -0
- package/WAProto/SyncAction/JKT48Connect - Valzyy +0 -0
- package/WAProto/UserPassword/JKT48Connect - Valzyy +0 -0
- package/WAProto/VnameCert/JKT48Connect - Valzyy +0 -0
- package/WAProto/Wa6/JKT48Connect - Valzyy +0 -0
- package/WAProto/Web/JKT48Connect - Valzyy +0 -0
- package/lib/JKT48Connect - Valzyy +0 -0
@@ -8,6 +8,8 @@ interface IClientPairingProps {
|
|
8
8
|
isChatDbLidMigrated?: (boolean|null);
|
9
9
|
/** ClientPairingProps isSyncdPureLidSession */
|
10
10
|
isSyncdPureLidSession?: (boolean|null);
|
11
|
+
/** ClientPairingProps isSyncdSnapshotRecoveryEnabled */
|
12
|
+
isSyncdSnapshotRecoveryEnabled?: (boolean|null);
|
11
13
|
}
|
12
14
|
/** Represents a ClientPairingProps. */
|
13
15
|
class ClientPairingProps implements IClientPairingProps {
|
@@ -20,10 +22,14 @@ constructor(properties?: CompanionReg.IClientPairingProps);
|
|
20
22
|
public isChatDbLidMigrated?: (boolean|null);
|
21
23
|
/** ClientPairingProps isSyncdPureLidSession. */
|
22
24
|
public isSyncdPureLidSession?: (boolean|null);
|
25
|
+
/** ClientPairingProps isSyncdSnapshotRecoveryEnabled. */
|
26
|
+
public isSyncdSnapshotRecoveryEnabled?: (boolean|null);
|
23
27
|
/** ClientPairingProps _isChatDbLidMigrated. */
|
24
28
|
public _isChatDbLidMigrated?: "isChatDbLidMigrated";
|
25
29
|
/** ClientPairingProps _isSyncdPureLidSession. */
|
26
30
|
public _isSyncdPureLidSession?: "isSyncdPureLidSession";
|
31
|
+
/** ClientPairingProps _isSyncdSnapshotRecoveryEnabled. */
|
32
|
+
public _isSyncdSnapshotRecoveryEnabled?: "isSyncdSnapshotRecoveryEnabled";
|
27
33
|
/**
|
28
34
|
* Creates a new ClientPairingProps instance using the specified properties.
|
29
35
|
* @param [properties] Properties to set
|
@@ -19,6 +19,7 @@ CompanionReg.ClientPairingProps = (function() {
|
|
19
19
|
* @interface IClientPairingProps
|
20
20
|
* @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
|
21
21
|
* @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
|
22
|
+
* @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
|
22
23
|
*/
|
23
24
|
/**
|
24
25
|
* Constructs a new ClientPairingProps.
|
@@ -48,6 +49,13 @@ ClientPairingProps.prototype.isChatDbLidMigrated = null;
|
|
48
49
|
* @instance
|
49
50
|
*/
|
50
51
|
ClientPairingProps.prototype.isSyncdPureLidSession = null;
|
52
|
+
/**
|
53
|
+
* ClientPairingProps isSyncdSnapshotRecoveryEnabled.
|
54
|
+
* @member {boolean|null|undefined} isSyncdSnapshotRecoveryEnabled
|
55
|
+
* @memberof CompanionReg.ClientPairingProps
|
56
|
+
* @instance
|
57
|
+
*/
|
58
|
+
ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
|
51
59
|
// OneOf field names bound to virtual getters and setters
|
52
60
|
var $oneOfFields;
|
53
61
|
/**
|
@@ -71,6 +79,16 @@ get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]),
|
|
71
79
|
set: $util.oneOfSetter($oneOfFields)
|
72
80
|
});
|
73
81
|
/**
|
82
|
+
* ClientPairingProps _isSyncdSnapshotRecoveryEnabled.
|
83
|
+
* @member {"isSyncdSnapshotRecoveryEnabled"|undefined} _isSyncdSnapshotRecoveryEnabled
|
84
|
+
* @memberof CompanionReg.ClientPairingProps
|
85
|
+
* @instance
|
86
|
+
*/
|
87
|
+
Object.defineProperty(ClientPairingProps.prototype, "_isSyncdSnapshotRecoveryEnabled", {
|
88
|
+
get: $util.oneOfGetter($oneOfFields = ["isSyncdSnapshotRecoveryEnabled"]),
|
89
|
+
set: $util.oneOfSetter($oneOfFields)
|
90
|
+
});
|
91
|
+
/**
|
74
92
|
* Creates a new ClientPairingProps instance using the specified properties.
|
75
93
|
* @function create
|
76
94
|
* @memberof CompanionReg.ClientPairingProps
|
@@ -97,6 +115,8 @@ if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "
|
|
97
115
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated);
|
98
116
|
if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession"))
|
99
117
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
|
118
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(message, "isSyncdSnapshotRecoveryEnabled"))
|
119
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSyncdSnapshotRecoveryEnabled);
|
100
120
|
return writer;
|
101
121
|
};
|
102
122
|
/**
|
@@ -139,6 +159,10 @@ case 2: {
|
|
139
159
|
message.isSyncdPureLidSession = reader.bool();
|
140
160
|
break;
|
141
161
|
}
|
162
|
+
case 3: {
|
163
|
+
message.isSyncdSnapshotRecoveryEnabled = reader.bool();
|
164
|
+
break;
|
165
|
+
}
|
142
166
|
default:
|
143
167
|
reader.skipType(tag & 7);
|
144
168
|
break;
|
@@ -183,6 +207,11 @@ properties._isSyncdPureLidSession = 1;
|
|
183
207
|
if (typeof message.isSyncdPureLidSession !== "boolean")
|
184
208
|
return "isSyncdPureLidSession: boolean expected";
|
185
209
|
}
|
210
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
211
|
+
properties._isSyncdSnapshotRecoveryEnabled = 1;
|
212
|
+
if (typeof message.isSyncdSnapshotRecoveryEnabled !== "boolean")
|
213
|
+
return "isSyncdSnapshotRecoveryEnabled: boolean expected";
|
214
|
+
}
|
186
215
|
return null;
|
187
216
|
};
|
188
217
|
/**
|
@@ -201,6 +230,8 @@ if (object.isChatDbLidMigrated != null)
|
|
201
230
|
message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated);
|
202
231
|
if (object.isSyncdPureLidSession != null)
|
203
232
|
message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
|
233
|
+
if (object.isSyncdSnapshotRecoveryEnabled != null)
|
234
|
+
message.isSyncdSnapshotRecoveryEnabled = Boolean(object.isSyncdSnapshotRecoveryEnabled);
|
204
235
|
return message;
|
205
236
|
};
|
206
237
|
/**
|
@@ -226,6 +257,11 @@ object.isSyncdPureLidSession = message.isSyncdPureLidSession;
|
|
226
257
|
if (options.oneofs)
|
227
258
|
object._isSyncdPureLidSession = "isSyncdPureLidSession";
|
228
259
|
}
|
260
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
261
|
+
object.isSyncdSnapshotRecoveryEnabled = message.isSyncdSnapshotRecoveryEnabled;
|
262
|
+
if (options.oneofs)
|
263
|
+
object._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled";
|
264
|
+
}
|
229
265
|
return object;
|
230
266
|
};
|
231
267
|
/**
|