sanka-baileyss 2.3.2 → 2.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.
- package/WAProto/BotMetadata/BotMetadata.d.ts +594 -1
- package/WAProto/BotMetadata/BotMetadata.js +1910 -148
- package/WAProto/BotMetadata/BotMetadata.proto +36 -0
- package/WAProto/E2E/E2E.d.ts +570 -6
- package/WAProto/E2E/E2E.js +1591 -26
- package/WAProto/E2E/E2E.proto +10 -1
- package/WAProto/HistorySync/HistorySync.d.ts +806 -6
- package/WAProto/HistorySync/HistorySync.js +2193 -29
- package/WAProto/HistorySync/HistorySync.proto +2 -1
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +570 -6
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1591 -26
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +2 -1
- package/WAProto/StatusAttributions/StatusAttributions.js +7 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +1 -0
- package/WAProto/SyncAction/SyncAction.d.ts +230 -0
- package/WAProto/SyncAction/SyncAction.js +578 -2
- package/WAProto/SyncAction/SyncAction.proto +13 -1
- package/WAProto/Web/Web.d.ts +570 -6
- package/WAProto/Web/Web.js +1591 -26
- package/lib/Defaults/baileys-version.json +2 -2
- package/lib/Defaults/index.d.ts +42 -25
- package/lib/Defaults/index.js +6 -2
- package/lib/Signal/Group/sender-key-record.js +23 -28
- package/lib/Signal/libsignal.d.ts +1 -0
- package/lib/Socket/Client/index.js +13 -9
- package/lib/Socket/Client/types.d.ts +11 -10
- package/lib/Socket/Client/types.js +11 -7
- package/lib/Socket/Client/websocket.d.ts +9 -8
- package/lib/Socket/Client/websocket.js +52 -47
- package/lib/Socket/business.d.ts +185 -182
- package/lib/Socket/business.js +258 -249
- package/lib/Socket/chats.d.ts +90 -87
- package/lib/Socket/chats.js +1095 -888
- package/lib/Socket/community.d.ts +131 -0
- package/lib/Socket/community.js +369 -0
- package/lib/Socket/groups.d.ts +50 -41
- package/lib/Socket/groups.js +10 -3
- package/lib/Socket/index.d.ts +5 -1
- package/lib/Socket/index.js +19 -5
- package/lib/Socket/messages-recv.d.ts +6 -2
- package/lib/Socket/messages-recv.js +31 -8
- package/lib/Socket/messages-send.d.ts +5 -1
- package/lib/Socket/messages-send.js +1293 -1351
- package/lib/Socket/newsletter.d.ts +142 -135
- package/lib/Socket/newsletter.js +274 -230
- package/lib/Socket/socket.d.ts +37 -35
- package/lib/Socket/usync.d.ts +31 -30
- package/lib/Socket/usync.js +74 -62
- package/lib/Types/Auth.d.ts +89 -72
- package/lib/Types/Auth.js +1 -0
- package/lib/Types/Call.d.ts +11 -10
- package/lib/Types/Call.js +1 -0
- package/lib/Types/Chat.d.ts +85 -62
- package/lib/Types/Chat.js +4 -1
- package/lib/Types/Contact.js +1 -0
- package/lib/Types/Events.d.ts +209 -191
- package/lib/Types/Events.js +1 -0
- package/lib/Types/GroupMetadata.d.ts +12 -27
- package/lib/Types/GroupMetadata.js +1 -0
- package/lib/Types/Label.d.ts +41 -39
- package/lib/Types/Label.js +24 -21
- package/lib/Types/LabelAssociation.d.ts +18 -12
- package/lib/Types/LabelAssociation.js +6 -3
- package/lib/Types/Message.d.ts +3 -2
- package/lib/Types/Message.js +7 -3
- package/lib/Types/MexUpdates.d.ts +9 -0
- package/lib/Types/MexUpdates.js +18 -0
- package/lib/Types/Newsletter.d.ts +84 -67
- package/lib/Types/Newsletter.js +30 -23
- package/lib/Types/Product.d.ts +70 -56
- package/lib/Types/Product.js +1 -0
- package/lib/Types/Signal.d.ts +46 -35
- package/lib/Types/Signal.js +1 -0
- package/lib/Types/Socket.d.ts +105 -101
- package/lib/Types/Socket.js +1 -0
- package/lib/Types/State.d.ts +37 -23
- package/lib/Types/State.js +13 -1
- package/lib/Types/USync.d.ts +21 -20
- package/lib/Types/USync.js +1 -0
- package/lib/Types/index.d.ts +51 -42
- package/lib/Types/index.js +25 -19
- package/lib/Utils/auth-utils.d.ts +14 -11
- package/lib/Utils/auth-utils.js +189 -182
- package/lib/Utils/baileys-event-stream.d.ts +12 -10
- package/lib/Utils/baileys-event-stream.js +52 -46
- package/lib/Utils/business.d.ts +15 -8
- package/lib/Utils/business.js +229 -217
- package/lib/Utils/chat-utils.d.ts +22 -12
- package/lib/Utils/chat-utils.js +57 -27
- package/lib/Utils/crypto.d.ts +31 -15
- package/lib/Utils/crypto.js +136 -107
- package/lib/Utils/decode-wa-message.d.ts +34 -245
- package/lib/Utils/decode-wa-message.js +205 -217
- package/lib/Utils/event-buffer.d.ts +30 -26
- package/lib/Utils/event-buffer.js +519 -515
- package/lib/Utils/history.d.ts +2 -8
- package/lib/Utils/index.js +13 -9
- package/lib/Utils/link-preview.d.ts +16 -14
- package/lib/Utils/link-preview.js +100 -92
- package/lib/Utils/logger.d.ts +9 -7
- package/lib/Utils/logger.js +1 -1
- package/lib/Utils/lt-hash.d.ts +10 -8
- package/lib/Utils/lt-hash.js +49 -44
- package/lib/Utils/make-mutex.d.ts +4 -2
- package/lib/Utils/make-mutex.js +43 -39
- package/lib/Utils/messages-media.d.ts +75 -50
- package/lib/Utils/messages.d.ts +60 -35
- package/lib/Utils/messages.js +87 -8
- package/lib/Utils/noise-handler.d.ts +13 -12
- package/lib/Utils/noise-handler.js +143 -138
- package/lib/Utils/process-message.d.ts +32 -24
- package/lib/Utils/process-message.js +387 -367
- package/lib/Utils/signal.d.ts +24 -15
- package/lib/Utils/signal.js +143 -131
- package/lib/Utils/use-mongo-file-auth-state.d.ts +3 -2
- package/lib/Utils/use-mongo-file-auth-state.js +72 -63
- package/lib/Utils/use-multi-file-auth-state.d.ts +9 -8
- package/lib/Utils/use-multi-file-auth-state.js +110 -102
- package/lib/Utils/use-single-file-auth-state.d.ts +8 -7
- package/lib/Utils/use-single-file-auth-state.js +66 -61
- package/lib/Utils/validate-connection.d.ts +5 -2
- package/lib/Utils/validate-connection.js +7 -6
- package/lib/WABinary/constants.d.ts +24 -21
- package/lib/WABinary/constants.js +1302 -31
- package/lib/WABinary/decode.d.ts +4 -1
- package/lib/WABinary/decode.js +267 -234
- package/lib/WABinary/encode.d.ts +1 -0
- package/lib/WABinary/encode.js +248 -226
- package/lib/WABinary/generic-utils.d.ts +13 -1
- package/lib/WABinary/generic-utils.js +113 -96
- package/lib/WABinary/index.js +13 -9
- package/lib/WABinary/jid-utils.d.ts +23 -4
- package/lib/WABinary/jid-utils.js +58 -39
- package/lib/WABinary/types.d.ts +15 -11
- package/lib/WABinary/types.js +1 -0
- package/lib/WAM/BinaryInfo.d.ts +14 -14
- package/lib/WAM/BinaryInfo.js +11 -8
- package/lib/WAM/constants.d.ts +34 -26
- package/lib/WAM/constants.js +15358 -15349
- package/lib/WAM/encode.d.ts +1 -0
- package/lib/WAM/encode.js +153 -144
- package/lib/WAM/index.js +13 -9
- package/lib/index.js +11 -11
- package/package.json +1 -66
- package/WASignalGroup/GroupProtocol.js +0 -1771
- package/WASignalGroup/ciphertext_message.js +0 -10
- package/WASignalGroup/group_cipher.js +0 -103
- package/WASignalGroup/group_session_builder.js +0 -39
- package/WASignalGroup/index.js +0 -5
- package/WASignalGroup/keyhelper.js +0 -17
- package/WASignalGroup/protobufs.js +0 -2
- package/WASignalGroup/queue_job.js +0 -64
- package/WASignalGroup/sender_chain_key.js +0 -38
- package/WASignalGroup/sender_key_distribution_message.js +0 -68
- package/WASignalGroup/sender_key_message.js +0 -79
- package/WASignalGroup/sender_key_name.js +0 -59
- package/WASignalGroup/sender_key_record.js +0 -47
- package/WASignalGroup/sender_key_state.js +0 -110
- package/WASignalGroup/sender_message_key.js +0 -30
|
@@ -955,6 +955,8 @@ $root.SyncAction = (function() {
|
|
|
955
955
|
* @property {SyncAction.SyncActionValue.IBusinessBroadcastAssociationAction|null} [businessBroadcastAssociationAction] SyncActionValue businessBroadcastAssociationAction
|
|
956
956
|
* @property {SyncAction.SyncActionValue.IDetectedOutcomesStatusAction|null} [detectedOutcomesStatusAction] SyncActionValue detectedOutcomesStatusAction
|
|
957
957
|
* @property {SyncAction.SyncActionValue.IMaibaAIFeaturesControlAction|null} [maibaAiFeaturesControlAction] SyncActionValue maibaAiFeaturesControlAction
|
|
958
|
+
* @property {SyncAction.SyncActionValue.IBusinessBroadcastListAction|null} [businessBroadcastListAction] SyncActionValue businessBroadcastListAction
|
|
959
|
+
* @property {SyncAction.SyncActionValue.IMusicUserIdAction|null} [musicUserIdAction] SyncActionValue musicUserIdAction
|
|
958
960
|
*/
|
|
959
961
|
|
|
960
962
|
/**
|
|
@@ -1460,6 +1462,22 @@ $root.SyncAction = (function() {
|
|
|
1460
1462
|
*/
|
|
1461
1463
|
SyncActionValue.prototype.maibaAiFeaturesControlAction = null;
|
|
1462
1464
|
|
|
1465
|
+
/**
|
|
1466
|
+
* SyncActionValue businessBroadcastListAction.
|
|
1467
|
+
* @member {SyncAction.SyncActionValue.IBusinessBroadcastListAction|null|undefined} businessBroadcastListAction
|
|
1468
|
+
* @memberof SyncAction.SyncActionValue
|
|
1469
|
+
* @instance
|
|
1470
|
+
*/
|
|
1471
|
+
SyncActionValue.prototype.businessBroadcastListAction = null;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* SyncActionValue musicUserIdAction.
|
|
1475
|
+
* @member {SyncAction.SyncActionValue.IMusicUserIdAction|null|undefined} musicUserIdAction
|
|
1476
|
+
* @memberof SyncAction.SyncActionValue
|
|
1477
|
+
* @instance
|
|
1478
|
+
*/
|
|
1479
|
+
SyncActionValue.prototype.musicUserIdAction = null;
|
|
1480
|
+
|
|
1463
1481
|
/**
|
|
1464
1482
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
1465
1483
|
* @function create
|
|
@@ -1605,7 +1623,11 @@ $root.SyncAction = (function() {
|
|
|
1605
1623
|
if (message.detectedOutcomesStatusAction != null && Object.hasOwnProperty.call(message, "detectedOutcomesStatusAction"))
|
|
1606
1624
|
$root.SyncAction.SyncActionValue.DetectedOutcomesStatusAction.encode(message.detectedOutcomesStatusAction, writer.uint32(/* id 66, wireType 2 =*/530).fork()).ldelim();
|
|
1607
1625
|
if (message.maibaAiFeaturesControlAction != null && Object.hasOwnProperty.call(message, "maibaAiFeaturesControlAction"))
|
|
1608
|
-
$root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.encode(message.maibaAiFeaturesControlAction, writer.uint32(/* id
|
|
1626
|
+
$root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.encode(message.maibaAiFeaturesControlAction, writer.uint32(/* id 68, wireType 2 =*/546).fork()).ldelim();
|
|
1627
|
+
if (message.businessBroadcastListAction != null && Object.hasOwnProperty.call(message, "businessBroadcastListAction"))
|
|
1628
|
+
$root.SyncAction.SyncActionValue.BusinessBroadcastListAction.encode(message.businessBroadcastListAction, writer.uint32(/* id 69, wireType 2 =*/554).fork()).ldelim();
|
|
1629
|
+
if (message.musicUserIdAction != null && Object.hasOwnProperty.call(message, "musicUserIdAction"))
|
|
1630
|
+
$root.SyncAction.SyncActionValue.MusicUserIdAction.encode(message.musicUserIdAction, writer.uint32(/* id 70, wireType 2 =*/562).fork()).ldelim();
|
|
1609
1631
|
return writer;
|
|
1610
1632
|
};
|
|
1611
1633
|
|
|
@@ -1882,10 +1904,18 @@ $root.SyncAction = (function() {
|
|
|
1882
1904
|
message.detectedOutcomesStatusAction = $root.SyncAction.SyncActionValue.DetectedOutcomesStatusAction.decode(reader, reader.uint32());
|
|
1883
1905
|
break;
|
|
1884
1906
|
}
|
|
1885
|
-
case
|
|
1907
|
+
case 68: {
|
|
1886
1908
|
message.maibaAiFeaturesControlAction = $root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.decode(reader, reader.uint32());
|
|
1887
1909
|
break;
|
|
1888
1910
|
}
|
|
1911
|
+
case 69: {
|
|
1912
|
+
message.businessBroadcastListAction = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.decode(reader, reader.uint32());
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
case 70: {
|
|
1916
|
+
message.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.decode(reader, reader.uint32());
|
|
1917
|
+
break;
|
|
1918
|
+
}
|
|
1889
1919
|
default:
|
|
1890
1920
|
reader.skipType(tag & 7);
|
|
1891
1921
|
break;
|
|
@@ -2224,6 +2254,16 @@ $root.SyncAction = (function() {
|
|
|
2224
2254
|
if (error)
|
|
2225
2255
|
return "maibaAiFeaturesControlAction." + error;
|
|
2226
2256
|
}
|
|
2257
|
+
if (message.businessBroadcastListAction != null && message.hasOwnProperty("businessBroadcastListAction")) {
|
|
2258
|
+
var error = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.verify(message.businessBroadcastListAction);
|
|
2259
|
+
if (error)
|
|
2260
|
+
return "businessBroadcastListAction." + error;
|
|
2261
|
+
}
|
|
2262
|
+
if (message.musicUserIdAction != null && message.hasOwnProperty("musicUserIdAction")) {
|
|
2263
|
+
var error = $root.SyncAction.SyncActionValue.MusicUserIdAction.verify(message.musicUserIdAction);
|
|
2264
|
+
if (error)
|
|
2265
|
+
return "musicUserIdAction." + error;
|
|
2266
|
+
}
|
|
2227
2267
|
return null;
|
|
2228
2268
|
};
|
|
2229
2269
|
|
|
@@ -2548,6 +2588,16 @@ $root.SyncAction = (function() {
|
|
|
2548
2588
|
throw TypeError(".SyncAction.SyncActionValue.maibaAiFeaturesControlAction: object expected");
|
|
2549
2589
|
message.maibaAiFeaturesControlAction = $root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.fromObject(object.maibaAiFeaturesControlAction);
|
|
2550
2590
|
}
|
|
2591
|
+
if (object.businessBroadcastListAction != null) {
|
|
2592
|
+
if (typeof object.businessBroadcastListAction !== "object")
|
|
2593
|
+
throw TypeError(".SyncAction.SyncActionValue.businessBroadcastListAction: object expected");
|
|
2594
|
+
message.businessBroadcastListAction = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.fromObject(object.businessBroadcastListAction);
|
|
2595
|
+
}
|
|
2596
|
+
if (object.musicUserIdAction != null) {
|
|
2597
|
+
if (typeof object.musicUserIdAction !== "object")
|
|
2598
|
+
throw TypeError(".SyncAction.SyncActionValue.musicUserIdAction: object expected");
|
|
2599
|
+
message.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.fromObject(object.musicUserIdAction);
|
|
2600
|
+
}
|
|
2551
2601
|
return message;
|
|
2552
2602
|
};
|
|
2553
2603
|
|
|
@@ -2630,6 +2680,8 @@ $root.SyncAction = (function() {
|
|
|
2630
2680
|
object.businessBroadcastAssociationAction = null;
|
|
2631
2681
|
object.detectedOutcomesStatusAction = null;
|
|
2632
2682
|
object.maibaAiFeaturesControlAction = null;
|
|
2683
|
+
object.businessBroadcastListAction = null;
|
|
2684
|
+
object.musicUserIdAction = null;
|
|
2633
2685
|
}
|
|
2634
2686
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
2635
2687
|
if (typeof message.timestamp === "number")
|
|
@@ -2756,6 +2808,10 @@ $root.SyncAction = (function() {
|
|
|
2756
2808
|
object.detectedOutcomesStatusAction = $root.SyncAction.SyncActionValue.DetectedOutcomesStatusAction.toObject(message.detectedOutcomesStatusAction, options);
|
|
2757
2809
|
if (message.maibaAiFeaturesControlAction != null && message.hasOwnProperty("maibaAiFeaturesControlAction"))
|
|
2758
2810
|
object.maibaAiFeaturesControlAction = $root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.toObject(message.maibaAiFeaturesControlAction, options);
|
|
2811
|
+
if (message.businessBroadcastListAction != null && message.hasOwnProperty("businessBroadcastListAction"))
|
|
2812
|
+
object.businessBroadcastListAction = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.toObject(message.businessBroadcastListAction, options);
|
|
2813
|
+
if (message.musicUserIdAction != null && message.hasOwnProperty("musicUserIdAction"))
|
|
2814
|
+
object.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.toObject(message.musicUserIdAction, options);
|
|
2759
2815
|
return object;
|
|
2760
2816
|
};
|
|
2761
2817
|
|
|
@@ -3886,6 +3942,275 @@ $root.SyncAction = (function() {
|
|
|
3886
3942
|
return BusinessBroadcastAssociationAction;
|
|
3887
3943
|
})();
|
|
3888
3944
|
|
|
3945
|
+
SyncActionValue.BusinessBroadcastListAction = (function() {
|
|
3946
|
+
|
|
3947
|
+
/**
|
|
3948
|
+
* Properties of a BusinessBroadcastListAction.
|
|
3949
|
+
* @memberof SyncAction.SyncActionValue
|
|
3950
|
+
* @interface IBusinessBroadcastListAction
|
|
3951
|
+
* @property {boolean|null} [deleted] BusinessBroadcastListAction deleted
|
|
3952
|
+
* @property {Array.<string>|null} [phoneNumbers] BusinessBroadcastListAction phoneNumbers
|
|
3953
|
+
* @property {string|null} [listName] BusinessBroadcastListAction listName
|
|
3954
|
+
*/
|
|
3955
|
+
|
|
3956
|
+
/**
|
|
3957
|
+
* Constructs a new BusinessBroadcastListAction.
|
|
3958
|
+
* @memberof SyncAction.SyncActionValue
|
|
3959
|
+
* @classdesc Represents a BusinessBroadcastListAction.
|
|
3960
|
+
* @implements IBusinessBroadcastListAction
|
|
3961
|
+
* @constructor
|
|
3962
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction=} [properties] Properties to set
|
|
3963
|
+
*/
|
|
3964
|
+
function BusinessBroadcastListAction(properties) {
|
|
3965
|
+
this.phoneNumbers = [];
|
|
3966
|
+
if (properties)
|
|
3967
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3968
|
+
if (properties[keys[i]] != null)
|
|
3969
|
+
this[keys[i]] = properties[keys[i]];
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
/**
|
|
3973
|
+
* BusinessBroadcastListAction deleted.
|
|
3974
|
+
* @member {boolean} deleted
|
|
3975
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
3976
|
+
* @instance
|
|
3977
|
+
*/
|
|
3978
|
+
BusinessBroadcastListAction.prototype.deleted = false;
|
|
3979
|
+
|
|
3980
|
+
/**
|
|
3981
|
+
* BusinessBroadcastListAction phoneNumbers.
|
|
3982
|
+
* @member {Array.<string>} phoneNumbers
|
|
3983
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
3984
|
+
* @instance
|
|
3985
|
+
*/
|
|
3986
|
+
BusinessBroadcastListAction.prototype.phoneNumbers = $util.emptyArray;
|
|
3987
|
+
|
|
3988
|
+
/**
|
|
3989
|
+
* BusinessBroadcastListAction listName.
|
|
3990
|
+
* @member {string} listName
|
|
3991
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
3992
|
+
* @instance
|
|
3993
|
+
*/
|
|
3994
|
+
BusinessBroadcastListAction.prototype.listName = "";
|
|
3995
|
+
|
|
3996
|
+
/**
|
|
3997
|
+
* Creates a new BusinessBroadcastListAction instance using the specified properties.
|
|
3998
|
+
* @function create
|
|
3999
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4000
|
+
* @static
|
|
4001
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction=} [properties] Properties to set
|
|
4002
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction instance
|
|
4003
|
+
*/
|
|
4004
|
+
BusinessBroadcastListAction.create = function create(properties) {
|
|
4005
|
+
return new BusinessBroadcastListAction(properties);
|
|
4006
|
+
};
|
|
4007
|
+
|
|
4008
|
+
/**
|
|
4009
|
+
* Encodes the specified BusinessBroadcastListAction message. Does not implicitly {@link SyncAction.SyncActionValue.BusinessBroadcastListAction.verify|verify} messages.
|
|
4010
|
+
* @function encode
|
|
4011
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4012
|
+
* @static
|
|
4013
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction} message BusinessBroadcastListAction message or plain object to encode
|
|
4014
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4015
|
+
* @returns {$protobuf.Writer} Writer
|
|
4016
|
+
*/
|
|
4017
|
+
BusinessBroadcastListAction.encode = function encode(message, writer) {
|
|
4018
|
+
if (!writer)
|
|
4019
|
+
writer = $Writer.create();
|
|
4020
|
+
if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted"))
|
|
4021
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deleted);
|
|
4022
|
+
if (message.phoneNumbers != null && message.phoneNumbers.length)
|
|
4023
|
+
for (var i = 0; i < message.phoneNumbers.length; ++i)
|
|
4024
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.phoneNumbers[i]);
|
|
4025
|
+
if (message.listName != null && Object.hasOwnProperty.call(message, "listName"))
|
|
4026
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.listName);
|
|
4027
|
+
return writer;
|
|
4028
|
+
};
|
|
4029
|
+
|
|
4030
|
+
/**
|
|
4031
|
+
* Encodes the specified BusinessBroadcastListAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.BusinessBroadcastListAction.verify|verify} messages.
|
|
4032
|
+
* @function encodeDelimited
|
|
4033
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4034
|
+
* @static
|
|
4035
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction} message BusinessBroadcastListAction message or plain object to encode
|
|
4036
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4037
|
+
* @returns {$protobuf.Writer} Writer
|
|
4038
|
+
*/
|
|
4039
|
+
BusinessBroadcastListAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4040
|
+
return this.encode(message, writer).ldelim();
|
|
4041
|
+
};
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* Decodes a BusinessBroadcastListAction message from the specified reader or buffer.
|
|
4045
|
+
* @function decode
|
|
4046
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4047
|
+
* @static
|
|
4048
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4049
|
+
* @param {number} [length] Message length if known beforehand
|
|
4050
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction
|
|
4051
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4052
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4053
|
+
*/
|
|
4054
|
+
BusinessBroadcastListAction.decode = function decode(reader, length, error) {
|
|
4055
|
+
if (!(reader instanceof $Reader))
|
|
4056
|
+
reader = $Reader.create(reader);
|
|
4057
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SyncAction.SyncActionValue.BusinessBroadcastListAction();
|
|
4058
|
+
while (reader.pos < end) {
|
|
4059
|
+
var tag = reader.uint32();
|
|
4060
|
+
if (tag === error)
|
|
4061
|
+
break;
|
|
4062
|
+
switch (tag >>> 3) {
|
|
4063
|
+
case 1: {
|
|
4064
|
+
message.deleted = reader.bool();
|
|
4065
|
+
break;
|
|
4066
|
+
}
|
|
4067
|
+
case 2: {
|
|
4068
|
+
if (!(message.phoneNumbers && message.phoneNumbers.length))
|
|
4069
|
+
message.phoneNumbers = [];
|
|
4070
|
+
message.phoneNumbers.push(reader.string());
|
|
4071
|
+
break;
|
|
4072
|
+
}
|
|
4073
|
+
case 3: {
|
|
4074
|
+
message.listName = reader.string();
|
|
4075
|
+
break;
|
|
4076
|
+
}
|
|
4077
|
+
default:
|
|
4078
|
+
reader.skipType(tag & 7);
|
|
4079
|
+
break;
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
return message;
|
|
4083
|
+
};
|
|
4084
|
+
|
|
4085
|
+
/**
|
|
4086
|
+
* Decodes a BusinessBroadcastListAction message from the specified reader or buffer, length delimited.
|
|
4087
|
+
* @function decodeDelimited
|
|
4088
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4089
|
+
* @static
|
|
4090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4091
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction
|
|
4092
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4093
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4094
|
+
*/
|
|
4095
|
+
BusinessBroadcastListAction.decodeDelimited = function decodeDelimited(reader) {
|
|
4096
|
+
if (!(reader instanceof $Reader))
|
|
4097
|
+
reader = new $Reader(reader);
|
|
4098
|
+
return this.decode(reader, reader.uint32());
|
|
4099
|
+
};
|
|
4100
|
+
|
|
4101
|
+
/**
|
|
4102
|
+
* Verifies a BusinessBroadcastListAction message.
|
|
4103
|
+
* @function verify
|
|
4104
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4105
|
+
* @static
|
|
4106
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4107
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4108
|
+
*/
|
|
4109
|
+
BusinessBroadcastListAction.verify = function verify(message) {
|
|
4110
|
+
if (typeof message !== "object" || message === null)
|
|
4111
|
+
return "object expected";
|
|
4112
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
4113
|
+
if (typeof message.deleted !== "boolean")
|
|
4114
|
+
return "deleted: boolean expected";
|
|
4115
|
+
if (message.phoneNumbers != null && message.hasOwnProperty("phoneNumbers")) {
|
|
4116
|
+
if (!Array.isArray(message.phoneNumbers))
|
|
4117
|
+
return "phoneNumbers: array expected";
|
|
4118
|
+
for (var i = 0; i < message.phoneNumbers.length; ++i)
|
|
4119
|
+
if (!$util.isString(message.phoneNumbers[i]))
|
|
4120
|
+
return "phoneNumbers: string[] expected";
|
|
4121
|
+
}
|
|
4122
|
+
if (message.listName != null && message.hasOwnProperty("listName"))
|
|
4123
|
+
if (!$util.isString(message.listName))
|
|
4124
|
+
return "listName: string expected";
|
|
4125
|
+
return null;
|
|
4126
|
+
};
|
|
4127
|
+
|
|
4128
|
+
/**
|
|
4129
|
+
* Creates a BusinessBroadcastListAction message from a plain object. Also converts values to their respective internal types.
|
|
4130
|
+
* @function fromObject
|
|
4131
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4132
|
+
* @static
|
|
4133
|
+
* @param {Object.<string,*>} object Plain object
|
|
4134
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction
|
|
4135
|
+
*/
|
|
4136
|
+
BusinessBroadcastListAction.fromObject = function fromObject(object) {
|
|
4137
|
+
if (object instanceof $root.SyncAction.SyncActionValue.BusinessBroadcastListAction)
|
|
4138
|
+
return object;
|
|
4139
|
+
var message = new $root.SyncAction.SyncActionValue.BusinessBroadcastListAction();
|
|
4140
|
+
if (object.deleted != null)
|
|
4141
|
+
message.deleted = Boolean(object.deleted);
|
|
4142
|
+
if (object.phoneNumbers) {
|
|
4143
|
+
if (!Array.isArray(object.phoneNumbers))
|
|
4144
|
+
throw TypeError(".SyncAction.SyncActionValue.BusinessBroadcastListAction.phoneNumbers: array expected");
|
|
4145
|
+
message.phoneNumbers = [];
|
|
4146
|
+
for (var i = 0; i < object.phoneNumbers.length; ++i)
|
|
4147
|
+
message.phoneNumbers[i] = String(object.phoneNumbers[i]);
|
|
4148
|
+
}
|
|
4149
|
+
if (object.listName != null)
|
|
4150
|
+
message.listName = String(object.listName);
|
|
4151
|
+
return message;
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
/**
|
|
4155
|
+
* Creates a plain object from a BusinessBroadcastListAction message. Also converts values to other types if specified.
|
|
4156
|
+
* @function toObject
|
|
4157
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4158
|
+
* @static
|
|
4159
|
+
* @param {SyncAction.SyncActionValue.BusinessBroadcastListAction} message BusinessBroadcastListAction
|
|
4160
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4161
|
+
* @returns {Object.<string,*>} Plain object
|
|
4162
|
+
*/
|
|
4163
|
+
BusinessBroadcastListAction.toObject = function toObject(message, options) {
|
|
4164
|
+
if (!options)
|
|
4165
|
+
options = {};
|
|
4166
|
+
var object = {};
|
|
4167
|
+
if (options.arrays || options.defaults)
|
|
4168
|
+
object.phoneNumbers = [];
|
|
4169
|
+
if (options.defaults) {
|
|
4170
|
+
object.deleted = false;
|
|
4171
|
+
object.listName = "";
|
|
4172
|
+
}
|
|
4173
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
4174
|
+
object.deleted = message.deleted;
|
|
4175
|
+
if (message.phoneNumbers && message.phoneNumbers.length) {
|
|
4176
|
+
object.phoneNumbers = [];
|
|
4177
|
+
for (var j = 0; j < message.phoneNumbers.length; ++j)
|
|
4178
|
+
object.phoneNumbers[j] = message.phoneNumbers[j];
|
|
4179
|
+
}
|
|
4180
|
+
if (message.listName != null && message.hasOwnProperty("listName"))
|
|
4181
|
+
object.listName = message.listName;
|
|
4182
|
+
return object;
|
|
4183
|
+
};
|
|
4184
|
+
|
|
4185
|
+
/**
|
|
4186
|
+
* Converts this BusinessBroadcastListAction to JSON.
|
|
4187
|
+
* @function toJSON
|
|
4188
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4189
|
+
* @instance
|
|
4190
|
+
* @returns {Object.<string,*>} JSON object
|
|
4191
|
+
*/
|
|
4192
|
+
BusinessBroadcastListAction.prototype.toJSON = function toJSON() {
|
|
4193
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4194
|
+
};
|
|
4195
|
+
|
|
4196
|
+
/**
|
|
4197
|
+
* Gets the default type url for BusinessBroadcastListAction
|
|
4198
|
+
* @function getTypeUrl
|
|
4199
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
4200
|
+
* @static
|
|
4201
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4202
|
+
* @returns {string} The default type url
|
|
4203
|
+
*/
|
|
4204
|
+
BusinessBroadcastListAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
4205
|
+
if (typeUrlPrefix === undefined) {
|
|
4206
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
4207
|
+
}
|
|
4208
|
+
return typeUrlPrefix + "/SyncAction.SyncActionValue.BusinessBroadcastListAction";
|
|
4209
|
+
};
|
|
4210
|
+
|
|
4211
|
+
return BusinessBroadcastListAction;
|
|
4212
|
+
})();
|
|
4213
|
+
|
|
3889
4214
|
SyncActionValue.CallLogAction = (function() {
|
|
3890
4215
|
|
|
3891
4216
|
/**
|
|
@@ -10670,6 +10995,211 @@ $root.SyncAction = (function() {
|
|
|
10670
10995
|
return MerchantPaymentPartnerAction;
|
|
10671
10996
|
})();
|
|
10672
10997
|
|
|
10998
|
+
SyncActionValue.MusicUserIdAction = (function() {
|
|
10999
|
+
|
|
11000
|
+
/**
|
|
11001
|
+
* Properties of a MusicUserIdAction.
|
|
11002
|
+
* @memberof SyncAction.SyncActionValue
|
|
11003
|
+
* @interface IMusicUserIdAction
|
|
11004
|
+
* @property {string|null} [musicUserId] MusicUserIdAction musicUserId
|
|
11005
|
+
*/
|
|
11006
|
+
|
|
11007
|
+
/**
|
|
11008
|
+
* Constructs a new MusicUserIdAction.
|
|
11009
|
+
* @memberof SyncAction.SyncActionValue
|
|
11010
|
+
* @classdesc Represents a MusicUserIdAction.
|
|
11011
|
+
* @implements IMusicUserIdAction
|
|
11012
|
+
* @constructor
|
|
11013
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction=} [properties] Properties to set
|
|
11014
|
+
*/
|
|
11015
|
+
function MusicUserIdAction(properties) {
|
|
11016
|
+
if (properties)
|
|
11017
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11018
|
+
if (properties[keys[i]] != null)
|
|
11019
|
+
this[keys[i]] = properties[keys[i]];
|
|
11020
|
+
}
|
|
11021
|
+
|
|
11022
|
+
/**
|
|
11023
|
+
* MusicUserIdAction musicUserId.
|
|
11024
|
+
* @member {string} musicUserId
|
|
11025
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11026
|
+
* @instance
|
|
11027
|
+
*/
|
|
11028
|
+
MusicUserIdAction.prototype.musicUserId = "";
|
|
11029
|
+
|
|
11030
|
+
/**
|
|
11031
|
+
* Creates a new MusicUserIdAction instance using the specified properties.
|
|
11032
|
+
* @function create
|
|
11033
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11034
|
+
* @static
|
|
11035
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction=} [properties] Properties to set
|
|
11036
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction instance
|
|
11037
|
+
*/
|
|
11038
|
+
MusicUserIdAction.create = function create(properties) {
|
|
11039
|
+
return new MusicUserIdAction(properties);
|
|
11040
|
+
};
|
|
11041
|
+
|
|
11042
|
+
/**
|
|
11043
|
+
* Encodes the specified MusicUserIdAction message. Does not implicitly {@link SyncAction.SyncActionValue.MusicUserIdAction.verify|verify} messages.
|
|
11044
|
+
* @function encode
|
|
11045
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11046
|
+
* @static
|
|
11047
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction} message MusicUserIdAction message or plain object to encode
|
|
11048
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11049
|
+
* @returns {$protobuf.Writer} Writer
|
|
11050
|
+
*/
|
|
11051
|
+
MusicUserIdAction.encode = function encode(message, writer) {
|
|
11052
|
+
if (!writer)
|
|
11053
|
+
writer = $Writer.create();
|
|
11054
|
+
if (message.musicUserId != null && Object.hasOwnProperty.call(message, "musicUserId"))
|
|
11055
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.musicUserId);
|
|
11056
|
+
return writer;
|
|
11057
|
+
};
|
|
11058
|
+
|
|
11059
|
+
/**
|
|
11060
|
+
* Encodes the specified MusicUserIdAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.MusicUserIdAction.verify|verify} messages.
|
|
11061
|
+
* @function encodeDelimited
|
|
11062
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11063
|
+
* @static
|
|
11064
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction} message MusicUserIdAction message or plain object to encode
|
|
11065
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11066
|
+
* @returns {$protobuf.Writer} Writer
|
|
11067
|
+
*/
|
|
11068
|
+
MusicUserIdAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11069
|
+
return this.encode(message, writer).ldelim();
|
|
11070
|
+
};
|
|
11071
|
+
|
|
11072
|
+
/**
|
|
11073
|
+
* Decodes a MusicUserIdAction message from the specified reader or buffer.
|
|
11074
|
+
* @function decode
|
|
11075
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11076
|
+
* @static
|
|
11077
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11078
|
+
* @param {number} [length] Message length if known beforehand
|
|
11079
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction
|
|
11080
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11081
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11082
|
+
*/
|
|
11083
|
+
MusicUserIdAction.decode = function decode(reader, length, error) {
|
|
11084
|
+
if (!(reader instanceof $Reader))
|
|
11085
|
+
reader = $Reader.create(reader);
|
|
11086
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SyncAction.SyncActionValue.MusicUserIdAction();
|
|
11087
|
+
while (reader.pos < end) {
|
|
11088
|
+
var tag = reader.uint32();
|
|
11089
|
+
if (tag === error)
|
|
11090
|
+
break;
|
|
11091
|
+
switch (tag >>> 3) {
|
|
11092
|
+
case 1: {
|
|
11093
|
+
message.musicUserId = reader.string();
|
|
11094
|
+
break;
|
|
11095
|
+
}
|
|
11096
|
+
default:
|
|
11097
|
+
reader.skipType(tag & 7);
|
|
11098
|
+
break;
|
|
11099
|
+
}
|
|
11100
|
+
}
|
|
11101
|
+
return message;
|
|
11102
|
+
};
|
|
11103
|
+
|
|
11104
|
+
/**
|
|
11105
|
+
* Decodes a MusicUserIdAction message from the specified reader or buffer, length delimited.
|
|
11106
|
+
* @function decodeDelimited
|
|
11107
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11108
|
+
* @static
|
|
11109
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11110
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction
|
|
11111
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11112
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11113
|
+
*/
|
|
11114
|
+
MusicUserIdAction.decodeDelimited = function decodeDelimited(reader) {
|
|
11115
|
+
if (!(reader instanceof $Reader))
|
|
11116
|
+
reader = new $Reader(reader);
|
|
11117
|
+
return this.decode(reader, reader.uint32());
|
|
11118
|
+
};
|
|
11119
|
+
|
|
11120
|
+
/**
|
|
11121
|
+
* Verifies a MusicUserIdAction message.
|
|
11122
|
+
* @function verify
|
|
11123
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11124
|
+
* @static
|
|
11125
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11126
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11127
|
+
*/
|
|
11128
|
+
MusicUserIdAction.verify = function verify(message) {
|
|
11129
|
+
if (typeof message !== "object" || message === null)
|
|
11130
|
+
return "object expected";
|
|
11131
|
+
if (message.musicUserId != null && message.hasOwnProperty("musicUserId"))
|
|
11132
|
+
if (!$util.isString(message.musicUserId))
|
|
11133
|
+
return "musicUserId: string expected";
|
|
11134
|
+
return null;
|
|
11135
|
+
};
|
|
11136
|
+
|
|
11137
|
+
/**
|
|
11138
|
+
* Creates a MusicUserIdAction message from a plain object. Also converts values to their respective internal types.
|
|
11139
|
+
* @function fromObject
|
|
11140
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11141
|
+
* @static
|
|
11142
|
+
* @param {Object.<string,*>} object Plain object
|
|
11143
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction
|
|
11144
|
+
*/
|
|
11145
|
+
MusicUserIdAction.fromObject = function fromObject(object) {
|
|
11146
|
+
if (object instanceof $root.SyncAction.SyncActionValue.MusicUserIdAction)
|
|
11147
|
+
return object;
|
|
11148
|
+
var message = new $root.SyncAction.SyncActionValue.MusicUserIdAction();
|
|
11149
|
+
if (object.musicUserId != null)
|
|
11150
|
+
message.musicUserId = String(object.musicUserId);
|
|
11151
|
+
return message;
|
|
11152
|
+
};
|
|
11153
|
+
|
|
11154
|
+
/**
|
|
11155
|
+
* Creates a plain object from a MusicUserIdAction message. Also converts values to other types if specified.
|
|
11156
|
+
* @function toObject
|
|
11157
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11158
|
+
* @static
|
|
11159
|
+
* @param {SyncAction.SyncActionValue.MusicUserIdAction} message MusicUserIdAction
|
|
11160
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11161
|
+
* @returns {Object.<string,*>} Plain object
|
|
11162
|
+
*/
|
|
11163
|
+
MusicUserIdAction.toObject = function toObject(message, options) {
|
|
11164
|
+
if (!options)
|
|
11165
|
+
options = {};
|
|
11166
|
+
var object = {};
|
|
11167
|
+
if (options.defaults)
|
|
11168
|
+
object.musicUserId = "";
|
|
11169
|
+
if (message.musicUserId != null && message.hasOwnProperty("musicUserId"))
|
|
11170
|
+
object.musicUserId = message.musicUserId;
|
|
11171
|
+
return object;
|
|
11172
|
+
};
|
|
11173
|
+
|
|
11174
|
+
/**
|
|
11175
|
+
* Converts this MusicUserIdAction to JSON.
|
|
11176
|
+
* @function toJSON
|
|
11177
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11178
|
+
* @instance
|
|
11179
|
+
* @returns {Object.<string,*>} JSON object
|
|
11180
|
+
*/
|
|
11181
|
+
MusicUserIdAction.prototype.toJSON = function toJSON() {
|
|
11182
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11183
|
+
};
|
|
11184
|
+
|
|
11185
|
+
/**
|
|
11186
|
+
* Gets the default type url for MusicUserIdAction
|
|
11187
|
+
* @function getTypeUrl
|
|
11188
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
11189
|
+
* @static
|
|
11190
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
11191
|
+
* @returns {string} The default type url
|
|
11192
|
+
*/
|
|
11193
|
+
MusicUserIdAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
11194
|
+
if (typeUrlPrefix === undefined) {
|
|
11195
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
11196
|
+
}
|
|
11197
|
+
return typeUrlPrefix + "/SyncAction.SyncActionValue.MusicUserIdAction";
|
|
11198
|
+
};
|
|
11199
|
+
|
|
11200
|
+
return MusicUserIdAction;
|
|
11201
|
+
})();
|
|
11202
|
+
|
|
10673
11203
|
SyncActionValue.MuteAction = (function() {
|
|
10674
11204
|
|
|
10675
11205
|
/**
|
|
@@ -15326,6 +15856,8 @@ $root.SyncAction = (function() {
|
|
|
15326
15856
|
* @property {boolean|null} [isFavorite] StickerAction isFavorite
|
|
15327
15857
|
* @property {number|null} [deviceIdHint] StickerAction deviceIdHint
|
|
15328
15858
|
* @property {boolean|null} [isLottie] StickerAction isLottie
|
|
15859
|
+
* @property {string|null} [imageHash] StickerAction imageHash
|
|
15860
|
+
* @property {boolean|null} [isAvatarSticker] StickerAction isAvatarSticker
|
|
15329
15861
|
*/
|
|
15330
15862
|
|
|
15331
15863
|
/**
|
|
@@ -15431,6 +15963,22 @@ $root.SyncAction = (function() {
|
|
|
15431
15963
|
*/
|
|
15432
15964
|
StickerAction.prototype.isLottie = false;
|
|
15433
15965
|
|
|
15966
|
+
/**
|
|
15967
|
+
* StickerAction imageHash.
|
|
15968
|
+
* @member {string} imageHash
|
|
15969
|
+
* @memberof SyncAction.SyncActionValue.StickerAction
|
|
15970
|
+
* @instance
|
|
15971
|
+
*/
|
|
15972
|
+
StickerAction.prototype.imageHash = "";
|
|
15973
|
+
|
|
15974
|
+
/**
|
|
15975
|
+
* StickerAction isAvatarSticker.
|
|
15976
|
+
* @member {boolean} isAvatarSticker
|
|
15977
|
+
* @memberof SyncAction.SyncActionValue.StickerAction
|
|
15978
|
+
* @instance
|
|
15979
|
+
*/
|
|
15980
|
+
StickerAction.prototype.isAvatarSticker = false;
|
|
15981
|
+
|
|
15434
15982
|
/**
|
|
15435
15983
|
* Creates a new StickerAction instance using the specified properties.
|
|
15436
15984
|
* @function create
|
|
@@ -15477,6 +16025,10 @@ $root.SyncAction = (function() {
|
|
|
15477
16025
|
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.deviceIdHint);
|
|
15478
16026
|
if (message.isLottie != null && Object.hasOwnProperty.call(message, "isLottie"))
|
|
15479
16027
|
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isLottie);
|
|
16028
|
+
if (message.imageHash != null && Object.hasOwnProperty.call(message, "imageHash"))
|
|
16029
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.imageHash);
|
|
16030
|
+
if (message.isAvatarSticker != null && Object.hasOwnProperty.call(message, "isAvatarSticker"))
|
|
16031
|
+
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isAvatarSticker);
|
|
15480
16032
|
return writer;
|
|
15481
16033
|
};
|
|
15482
16034
|
|
|
@@ -15557,6 +16109,14 @@ $root.SyncAction = (function() {
|
|
|
15557
16109
|
message.isLottie = reader.bool();
|
|
15558
16110
|
break;
|
|
15559
16111
|
}
|
|
16112
|
+
case 12: {
|
|
16113
|
+
message.imageHash = reader.string();
|
|
16114
|
+
break;
|
|
16115
|
+
}
|
|
16116
|
+
case 13: {
|
|
16117
|
+
message.isAvatarSticker = reader.bool();
|
|
16118
|
+
break;
|
|
16119
|
+
}
|
|
15560
16120
|
default:
|
|
15561
16121
|
reader.skipType(tag & 7);
|
|
15562
16122
|
break;
|
|
@@ -15625,6 +16185,12 @@ $root.SyncAction = (function() {
|
|
|
15625
16185
|
if (message.isLottie != null && message.hasOwnProperty("isLottie"))
|
|
15626
16186
|
if (typeof message.isLottie !== "boolean")
|
|
15627
16187
|
return "isLottie: boolean expected";
|
|
16188
|
+
if (message.imageHash != null && message.hasOwnProperty("imageHash"))
|
|
16189
|
+
if (!$util.isString(message.imageHash))
|
|
16190
|
+
return "imageHash: string expected";
|
|
16191
|
+
if (message.isAvatarSticker != null && message.hasOwnProperty("isAvatarSticker"))
|
|
16192
|
+
if (typeof message.isAvatarSticker !== "boolean")
|
|
16193
|
+
return "isAvatarSticker: boolean expected";
|
|
15628
16194
|
return null;
|
|
15629
16195
|
};
|
|
15630
16196
|
|
|
@@ -15675,6 +16241,10 @@ $root.SyncAction = (function() {
|
|
|
15675
16241
|
message.deviceIdHint = object.deviceIdHint >>> 0;
|
|
15676
16242
|
if (object.isLottie != null)
|
|
15677
16243
|
message.isLottie = Boolean(object.isLottie);
|
|
16244
|
+
if (object.imageHash != null)
|
|
16245
|
+
message.imageHash = String(object.imageHash);
|
|
16246
|
+
if (object.isAvatarSticker != null)
|
|
16247
|
+
message.isAvatarSticker = Boolean(object.isAvatarSticker);
|
|
15678
16248
|
return message;
|
|
15679
16249
|
};
|
|
15680
16250
|
|
|
@@ -15719,6 +16289,8 @@ $root.SyncAction = (function() {
|
|
|
15719
16289
|
object.isFavorite = false;
|
|
15720
16290
|
object.deviceIdHint = 0;
|
|
15721
16291
|
object.isLottie = false;
|
|
16292
|
+
object.imageHash = "";
|
|
16293
|
+
object.isAvatarSticker = false;
|
|
15722
16294
|
}
|
|
15723
16295
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
15724
16296
|
object.url = message.url;
|
|
@@ -15745,6 +16317,10 @@ $root.SyncAction = (function() {
|
|
|
15745
16317
|
object.deviceIdHint = message.deviceIdHint;
|
|
15746
16318
|
if (message.isLottie != null && message.hasOwnProperty("isLottie"))
|
|
15747
16319
|
object.isLottie = message.isLottie;
|
|
16320
|
+
if (message.imageHash != null && message.hasOwnProperty("imageHash"))
|
|
16321
|
+
object.imageHash = message.imageHash;
|
|
16322
|
+
if (message.isAvatarSticker != null && message.hasOwnProperty("isAvatarSticker"))
|
|
16323
|
+
object.isAvatarSticker = message.isAvatarSticker;
|
|
15748
16324
|
return object;
|
|
15749
16325
|
};
|
|
15750
16326
|
|